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:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user