Fix bug 316394 and bug 448166 by backporting the bug 316394 patch.

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@253807 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2008-08-25 15:16:31 +00:00
parent fafe80dbc0
commit 87d1da1261
9 changed files with 96 additions and 66 deletions

View File

@@ -2364,12 +2364,7 @@ static void AppendNCR(nsSubstring& aString, PRInt32 aNCRValue)
}
#endif
if (IS_IN_BMP(aNCRValue))
aString.Append(PRUnichar(aNCRValue));
else {
aString.Append(PRUnichar(H_SURROGATE(aNCRValue)));
aString.Append(PRUnichar(L_SURROGATE(aNCRValue)));
}
AppendUCS4ToUTF16(ENSURE_VALID_CHAR(aNCRValue), aString);
}
/*