From 83904bb4a769f978bcb453f571a177efea56aeec Mon Sep 17 00:00:00 2001 From: "ftang%netscape.com" Date: Thu, 19 Aug 1999 21:11:07 +0000 Subject: [PATCH] fix euc-jp detection bugs by remove 0x85,0x86,0xeb,0xec from the legal char list. change size of array which won't break build git-svn-id: svn://10.0.0.236/trunk@43688 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/intl/chardet/src/nsSJISVerifier.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mozilla/intl/chardet/src/nsSJISVerifier.h b/mozilla/intl/chardet/src/nsSJISVerifier.h index 38a793bd7fc..ebaddb323da 100644 --- a/mozilla/intl/chardet/src/nsSJISVerifier.h +++ b/mozilla/intl/chardet/src/nsSJISVerifier.h @@ -40,7 +40,7 @@ PCK4BITS(2,2,2,2,2,2,2,2), // 60 - 67 PCK4BITS(2,2,2,2,2,2,2,2), // 68 - 6f PCK4BITS(2,2,2,2,2,2,2,2), // 70 - 77 PCK4BITS(2,2,2,2,2,2,2,1), // 78 - 7f -PCK4BITS(3,3,3,3,3,0,0,3), // 80 - 87 +PCK4BITS(3,3,3,3,3,5,5,3), // 80 - 87 PCK4BITS(3,3,3,3,3,3,3,3), // 88 - 8f PCK4BITS(3,3,3,3,3,3,3,3), // 90 - 97 PCK4BITS(3,3,3,3,3,3,3,3), // 98 - 9f @@ -53,7 +53,7 @@ PCK4BITS(2,2,2,2,2,2,2,2), // c8 - cf PCK4BITS(2,2,2,2,2,2,2,2), // d0 - d7 PCK4BITS(2,2,2,2,2,2,2,2), // d8 - df PCK4BITS(3,3,3,3,3,3,3,3), // e0 - e7 -PCK4BITS(3,3,3,0,0,3,3,3), // e8 - ef +PCK4BITS(3,3,3,5,5,3,3,3), // e8 - ef PCK4BITS(3,3,3,3,3,3,3,3), // f0 - f7 PCK4BITS(3,3,3,3,3,0,0,0) // f8 - ff }; @@ -61,8 +61,8 @@ PCK4BITS(3,3,3,3,3,0,0,0) // f8 - ff static PRUint32 SJIS_st [ 3] = { PCK4BITS(eError,eStart,eStart, 3,eError,eError,eError,eError),//00-07 -PCK4BITS(eError,eError,eItsMe,eItsMe,eItsMe,eItsMe,eItsMe,eError),//08-0f -PCK4BITS(eError,eStart,eStart,eStart,eStart,eStart,eStart,eStart) //10-17 +PCK4BITS(eError,eError,eError,eError,eItsMe,eItsMe,eItsMe,eItsMe),//08-0f +PCK4BITS(eItsMe,eItsMe,eError,eError,eStart,eStart,eStart,eStart) //10-17 }; @@ -75,7 +75,7 @@ static nsVerifier nsSJISVerifier = { eUnitMsk4bits, SJIS_cls }, - 5, + 6, { eIdxSft4bits, eSftMsk4bits,