From 60ef648ceedb1fcdbd734eb8c5820722bae83ae1 Mon Sep 17 00:00:00 2001 From: "ftang%netscape.com" Date: Sat, 26 Aug 2000 04:15:34 +0000 Subject: [PATCH] fix bug 49262. for Unicode to ISO-2022-JP. Use the JISx0201 GL table so it won't generate JIS x0201 GR r=nhotta --- intl/uconv/ucvja/nsUCVJADll.h | 1 + intl/uconv/ucvja/nsUCvJaModule.cpp | 3 +++ intl/uconv/ucvja/nsUnicodeToISO2022JP.cpp | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/intl/uconv/ucvja/nsUCVJADll.h b/intl/uconv/ucvja/nsUCVJADll.h index a4d9c8e733c..0b4d7d6faf2 100644 --- a/intl/uconv/ucvja/nsUCVJADll.h +++ b/intl/uconv/ucvja/nsUCVJADll.h @@ -32,6 +32,7 @@ extern PRUint16 g_ut0208Mapping[]; extern PRUint16 g_ut0212Mapping[]; extern PRUint16 g_uf0201Mapping[]; +extern PRUint16 g_uf0201GLMapping[]; extern PRUint16 g_uf0208Mapping[]; extern PRUint16 g_uf0212Mapping[]; diff --git a/intl/uconv/ucvja/nsUCvJaModule.cpp b/intl/uconv/ucvja/nsUCvJaModule.cpp index be91fe8e078..85fd29efc9e 100644 --- a/intl/uconv/ucvja/nsUCvJaModule.cpp +++ b/intl/uconv/ucvja/nsUCvJaModule.cpp @@ -56,6 +56,9 @@ PRInt32 g_LockCount = 0; PRUint16 g_uf0201Mapping[] = { #include "jis0201.uf" }; +PRUint16 g_uf0201GLMapping[] = { +#include "jis0201gl.uf" +}; PRUint16 g_uf0208Mapping[] = { #include "jis0208.uf" diff --git a/intl/uconv/ucvja/nsUnicodeToISO2022JP.cpp b/intl/uconv/ucvja/nsUnicodeToISO2022JP.cpp index 218438336b5..a3884ffa819 100644 --- a/intl/uconv/ucvja/nsUnicodeToISO2022JP.cpp +++ b/intl/uconv/ucvja/nsUnicodeToISO2022JP.cpp @@ -49,7 +49,7 @@ static PRInt16 g_uf0208Shift [] = { static PRUint16 * g_ufMappingTables[4] = { g_ufAsciiMapping, - g_uf0201Mapping, + g_uf0201GLMapping, g_uf0208Mapping, g_uf0208Mapping, };