Bug 457886 - Cannot send ISO-2022-JP email on Tb trunk; r=smontagu sr=bienvenu

This commit is contained in:
Masatoshi Kimura
2008-10-11 02:52:24 +02:00
parent e4d5526525
commit f9c57c5be0
2 changed files with 21 additions and 1 deletions

View File

@@ -62,7 +62,7 @@ nsresult nsUnicodeEncodeHelper::ConvertByTable(
while (src < srcEnd) {
if (!uMapCode((uTable*) aMappingTable, static_cast<PRUnichar>(*(src++)), reinterpret_cast<PRUint16*>(&med))) {
if (*(src - 1) < 0x20) {
if (aScanClass == u1ByteCharset && *(src - 1) < 0x20) {
// some tables are missing the 0x00 - 0x20 part
med = *(src - 1);
} else {