From 28f9b6aad9de48107312ddc2a9374ac16abc6fb2 Mon Sep 17 00:00:00 2001 From: "ftang%netscape.com" Date: Fri, 4 Feb 2000 00:38:39 +0000 Subject: [PATCH] fix bug 23944. make range 0xE5-0xFC invalid frist byte of SJIS. code generate by perl script and reviewed by ftang --- intl/chardet/src/nsSJISVerifier.h | 6 +++--- intl/chardet/tools/gensjis.pl | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/intl/chardet/src/nsSJISVerifier.h b/intl/chardet/src/nsSJISVerifier.h index 28a5d8beeec..d4b2d438067 100644 --- a/intl/chardet/src/nsSJISVerifier.h +++ b/intl/chardet/src/nsSJISVerifier.h @@ -57,9 +57,9 @@ 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,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 +PCK4BITS(3,3,3,5,5,4,4,4), // e8 - ef +PCK4BITS(4,4,4,4,4,4,4,4), // f0 - f7 +PCK4BITS(4,4,4,4,4,0,0,0) // f8 - ff }; diff --git a/intl/chardet/tools/gensjis.pl b/intl/chardet/tools/gensjis.pl index 46455d6f11e..dabeb3249b4 100644 --- a/intl/chardet/tools/gensjis.pl +++ b/intl/chardet/tools/gensjis.pl @@ -22,7 +22,8 @@ my($sjis_ver); [ 0xa1 , 0xdf , 2 ], [ 0x80 , 0x9f , 3 ], [ 0xa0 , 0xa0 , 4 ], - [ 0xe0 , 0xfc , 3 ], + [ 0xe0 , 0xea , 3 ], + [ 0xed , 0xfc , 4 ], ); package genverifier;