From 74ba801f7a100bd25607ce86c5430c86bb4ffed7 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 a4d9c8e733c1..0b4d7d6faf2b 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 be91fe8e0785..85fd29efc9e6 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 218438336b5f..a3884ffa8198 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, };