#165908, —, – –, and — are displayed as ? (character substitutes/fallbacks broken)

added back a missing code path.

r=yokoyama, sr=dveditz, a=asa
This commit is contained in:
shanjian%netscape.com 2002-09-06 21:10:13 +00:00
Родитель aa5d51dfff
Коммит fbfbd249ef
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -256,7 +256,9 @@ nsSaveAsCharset::DoCharsetConversion(const PRUnichar *inString, char **outString
inStringLength > pos1 && IS_LOW_SURROGATE(inString[pos1])) { inStringLength > pos1 && IS_LOW_SURROGATE(inString[pos1])) {
unMappedChar = SURROGATE_TO_UCS4(inString[pos1-1], inString[pos1]); unMappedChar = SURROGATE_TO_UCS4(inString[pos1-1], inString[pos1]);
pos1++; pos1++;
}; } else {
unMappedChar = inString[pos1-1];
}
rv = mEncoder->GetMaxLength(inString+pos1, inStringLength-pos1, &dstLength); rv = mEncoder->GetMaxLength(inString+pos1, inStringLength-pos1, &dstLength);
if (NS_FAILED(rv)) if (NS_FAILED(rv))