зеркало из https://github.com/mozilla/gecko-dev.git
Fix the range check for CP949 in uscan.c, Bug 658952. Correct a typo in the alias cseuckr, Bug 462687 r=emk
This commit is contained in:
Родитель
71bfa4a331
Коммит
c59a93e2d4
|
@ -314,7 +314,7 @@ zh_tw-big5=Big5
|
|||
#
|
||||
# Aliases for EUC-KR
|
||||
#
|
||||
csueckr=EUC-KR
|
||||
cseuckr=EUC-KR
|
||||
# The following are really not aliases EUC-KR, add them only for MS FrontPage
|
||||
#ks_c_5601-1987=EUC-KR
|
||||
iso-ir-149=EUC-KR
|
||||
|
|
|
@ -373,14 +373,14 @@ PRIVATE PRBool uCheckAndScanAlways2ByteGR128(
|
|||
{
|
||||
/*
|
||||
* The first byte should be in [0xa1,0xfe]
|
||||
* and the second byte can take any value with MSB = 1.
|
||||
* and the second byte in [0x41,0xfe]
|
||||
* Used by CP949 -> Unicode converter.
|
||||
* Only 2nd byte range needs to be checked because
|
||||
* 1st byte is checked before calling this in nsUnicodeDecoerHelper.cpp
|
||||
* 1st byte is checked before calling this in nsUnicodeDecoderHelper.cpp
|
||||
*/
|
||||
if(inbuflen < 2) /* will lead to NS_OK_UDEC_MOREINPUT */
|
||||
return PR_FALSE;
|
||||
else if (!(in[1] & 0x80)) /* 2nd byte range check */
|
||||
else if (in[1] < 0x41) /* 2nd byte range check */
|
||||
{
|
||||
*inscanlen = 2;
|
||||
*out = 0xFF; /* for 2-byte table, uMap() is guaranteed to fail for 0xFF. */
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=KSC5601">
|
||||
</head>
|
||||
<body>
|
||||
<p>쨥쨥이 사주세요 - IE 기록<br>쨥쨥이 사주세요 - ie9 기록</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,8 @@
|
|||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=KSC5601">
|
||||
</head>
|
||||
<body>
|
||||
<p><EFBFBD><EFBFBD>捞 荤林技夸 - IE 扁废<br><EFBFBD><EFBFBD>捞 荤林技夸 - ie9 扁废</p>
|
||||
</body>
|
||||
</html>
|
|
@ -1637,3 +1637,4 @@ HTTP(..) == 654057-1.html 654057-1-ref.html
|
|||
fails-if(layersGPUAccelerated&&cocoaWidget) == 654950-1.html 654950-1-ref.html # Quartz alpha blending doesn't match GL alpha blending
|
||||
== 652775-1.html 652775-1-ref.html
|
||||
!= 656875.html about:blank
|
||||
== 658952.html 658952-ref.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче