зеркало из https://github.com/mozilla/gecko-dev.git
#127129 The above page is displayed many blank areas
When converting from unicode to GB2312GL, we need to clear 8bit. That is skipped in patch for 101998. Add it back. r=ftang, sr=alecf, a=asa
This commit is contained in:
Родитель
fb4d701bd1
Коммит
131731fcad
|
@ -70,11 +70,11 @@ PRBool nsGBKConvUtil::UnicodeToGBKChar(
|
|||
{
|
||||
*aOutByte1 = item >> 8;
|
||||
*aOutByte2 = item & 0x00FF;
|
||||
return PR_TRUE;
|
||||
found = PR_TRUE;
|
||||
} else {
|
||||
return PR_FALSE;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// ugly linear search
|
||||
for( PRInt32 i = 0; i < MAX_GBK_LENGTH; i++ )
|
||||
{
|
||||
|
@ -86,6 +86,7 @@ PRBool nsGBKConvUtil::UnicodeToGBKChar(
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(! found)
|
||||
return PR_FALSE;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче