зеркало из https://github.com/mozilla/gecko-dev.git
Change x-gbk to gbk in charset titles. Bug 369403, r=emk
This commit is contained in:
Родитель
4587536cef
Коммит
0280761cff
|
@ -71,7 +71,7 @@ big5-hkscs.title = Chinese Traditional (Big5-HKSCS)
|
|||
x-euc-tw.title = Chinese Traditional (EUC-TW)
|
||||
gb2312.title = Chinese Simplified (GB2312)
|
||||
hz-gb-2312.title = Chinese Simplified (HZ)
|
||||
x-gbk.title = Chinese Simplified (GBK)
|
||||
gbk.title = Chinese Simplified (GBK)
|
||||
iso-2022-cn.title = Chinese Simplified (ISO-2022-CN)
|
||||
euc-kr.title = Korean (EUC-KR)
|
||||
x-johab.title = Korean (JOHAB)
|
||||
|
|
|
@ -205,7 +205,7 @@ windows-1257.LangGroup = x-baltic
|
|||
windows-1258.LangGroup = x-western
|
||||
windows-936.LangGroup = zh-CN
|
||||
x-euc-tw.LangGroup = zh-TW
|
||||
x-gbk.LangGroup = zh-CN
|
||||
gbk.LangGroup = zh-CN
|
||||
gb_2312-80.LangGroup = zh-CN
|
||||
x-mac-ce.LangGroup = x-central-euro
|
||||
x-mac-croatian.LangGroup = x-central-euro
|
||||
|
|
|
@ -118,7 +118,7 @@ tis-620=TIS-620
|
|||
t.61-8bit=T.61-8bit
|
||||
hz-gb-2312=HZ-GB-2312
|
||||
big5-hkscs=Big5-HKSCS
|
||||
gbk=x-gbk
|
||||
gbk=gbk
|
||||
cns11643=x-euc-tw
|
||||
#
|
||||
# Netscape private ...
|
||||
|
@ -503,6 +503,6 @@ cp1256=windows-1256
|
|||
cp1257=windows-1257
|
||||
cp1258=windows-1258
|
||||
|
||||
x-gbk=x-gbk
|
||||
x-gbk=gbk
|
||||
windows-936=windows-936
|
||||
ansi-1251=windows-1251
|
||||
|
|
|
@ -387,7 +387,7 @@ NS_UCONV_REG_UNREG_DECODER("ISO-2022-KR", NS_ISO2022KRTOUNICODE_CID)
|
|||
// ucvcn
|
||||
NS_UCONV_REG_UNREG("GB2312", NS_GB2312TOUNICODE_CID, NS_UNICODETOGB2312_CID)
|
||||
NS_UCONV_REG_UNREG("windows-936", NS_CP936TOUNICODE_CID, NS_UNICODETOCP936_CID)
|
||||
NS_UCONV_REG_UNREG("x-gbk", NS_GBKTOUNICODE_CID, NS_UNICODETOGBK_CID)
|
||||
NS_UCONV_REG_UNREG("gbk", NS_GBKTOUNICODE_CID, NS_UNICODETOGBK_CID)
|
||||
NS_UCONV_REG_UNREG("HZ-GB-2312", NS_HZTOUNICODE_CID, NS_UNICODETOHZ_CID)
|
||||
NS_UCONV_REG_UNREG("gb18030", NS_GB18030TOUNICODE_CID, NS_UNICODETOGB18030_CID)
|
||||
NS_UCONV_REG_UNREG_DECODER("ISO-2022-CN", NS_ISO2022CNTOUNICODE_CID)
|
||||
|
@ -1173,8 +1173,8 @@ static const mozilla::Module::ContractIDEntry kUConvContracts[] = {
|
|||
{ NS_UNICODEENCODER_CONTRACTID_BASE "GB2312", &kNS_UNICODETOGB2312_CID },
|
||||
{ NS_UNICODEDECODER_CONTRACTID_BASE "windows-936", &kNS_CP936TOUNICODE_CID },
|
||||
{ NS_UNICODEENCODER_CONTRACTID_BASE "windows-936", &kNS_UNICODETOCP936_CID },
|
||||
{ NS_UNICODEDECODER_CONTRACTID_BASE "x-gbk", &kNS_GBKTOUNICODE_CID },
|
||||
{ NS_UNICODEENCODER_CONTRACTID_BASE "x-gbk", &kNS_UNICODETOGBK_CID },
|
||||
{ NS_UNICODEDECODER_CONTRACTID_BASE "gbk", &kNS_GBKTOUNICODE_CID },
|
||||
{ NS_UNICODEENCODER_CONTRACTID_BASE "gbk", &kNS_UNICODETOGBK_CID },
|
||||
{ NS_UNICODEDECODER_CONTRACTID_BASE "HZ-GB-2312", &kNS_HZTOUNICODE_CID },
|
||||
{ NS_UNICODEENCODER_CONTRACTID_BASE "HZ-GB-2312", &kNS_UNICODETOHZ_CID },
|
||||
{ NS_UNICODEDECODER_CONTRACTID_BASE "gb18030", &kNS_GB18030TOUNICODE_CID },
|
||||
|
|
|
@ -51,7 +51,7 @@ os2.936=GB2312
|
|||
os2.949=EUC-KR
|
||||
os2.950=Big5
|
||||
os2.1381=GB2312
|
||||
os2.1386=x-gbk
|
||||
os2.1386=gbk
|
||||
os2.813=ISO-8859-7
|
||||
os2.915=ISO-8859-5
|
||||
os2.1004=ISO-8859-1
|
||||
|
|
|
@ -587,7 +587,7 @@ locale.all.uk_UA=KOI8-U
|
|||
locale.all.zh=GB2312
|
||||
locale.all.zh_CN=GB2312
|
||||
locale.all.zh_CN.EUC=GB2312
|
||||
locale.all.zh.GBK=x-gbk
|
||||
locale.all.zh.GBK=gbk
|
||||
locale.all.zh_CN.UTF-8=UTF-8
|
||||
locale.all.zh.UTF-8=UTF-8
|
||||
locale.all.zh_TW.EUC=x-euc-tw
|
||||
|
@ -598,7 +598,7 @@ locale.all.zh_CN.GB2312=GB2312
|
|||
# AIX
|
||||
locale.all.ZH_CN=UTF-8
|
||||
locale.all.zh_CN.ugb=GB2312
|
||||
locale.all.zh_CN.GBK=x-gbk
|
||||
locale.all.zh_CN.GBK=gbk
|
||||
locale.all.zh_HK.big5=Big5
|
||||
locale.all.zh_HK.eucTW=x-euc-tw
|
||||
locale.all.zh_TW=x-euc-tw
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
// Tests conversion from gbk to Unicode
|
||||
// This is a sniff test which doesn't cover the full gbk range: the test string
|
||||
// includes only the ASCII range and the first 63 double byte characters
|
||||
|
||||
load('CharsetConversionTests.js');
|
||||
|
||||
const inString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―\‐/\~∥|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+-±×";
|
||||
|
||||
const expectedString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A\u4E6B\u4E6C\u4E6D\u4E6E\u4E6F\u4E72\u4E74\u4E75\u4E76\u4E77\u4E78\u4E79\u4E7A\u4E7B\u4E7C\u4E7D\u4E7F\u4E80\u4E81\u4E82\u4E83\u4E84\u4E85\u4E87\u4E8A";
|
||||
|
||||
const aliases = [ "gbk", "x-gbk" ];
|
||||
|
||||
function run_test() {
|
||||
testDecodeAliases();
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
// Tests conversion from Unicode to gbk
|
||||
// This is a sniff test which doesn't cover the full gbk range: the test string
|
||||
// includes only the ASCII range and the first 63 double byte characters
|
||||
|
||||
load('CharsetConversionTests.js');
|
||||
|
||||
const inString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A\u4E6B\u4E6C\u4E6D\u4E6E\u4E6F\u4E72\u4E74\u4E75\u4E76\u4E77\u4E78\u4E79\u4E7A\u4E7B\u4E7C\u4E7D\u4E7F\u4E80\u4E81\u4E82\u4E83\u4E84\u4E85\u4E87\u4E8A";
|
||||
|
||||
const expectedString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―\‐/\~∥|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+-±×";
|
||||
|
||||
const aliases = [ "gbk", "x-gbk" ];
|
||||
|
||||
function run_test() {
|
||||
testEncodeAliases();
|
||||
}
|
|
@ -3876,7 +3876,7 @@ static const moz2javaCharset charsets[] =
|
|||
{"EUC-KR", "EUC_KR"},
|
||||
{"x-euc-tw", "EUC_TW"},
|
||||
{"gb18030", "GB18030"},
|
||||
{"x-gbk", "GBK"},
|
||||
{"gbk", "GBK"},
|
||||
{"ISO-2022-JP", "ISO2022JP"},
|
||||
{"ISO-2022-KR", "ISO2022KR"},
|
||||
{"ISO-8859-2", "ISO8859_2"},
|
||||
|
|
|
@ -1014,7 +1014,7 @@ pref("intl.menuitems.insertseparatorbeforeaccesskeys","chrome://global/locale/in
|
|||
pref("intl.charsetmenu.browser.static", "chrome://global/locale/intl.properties");
|
||||
pref("intl.charsetmenu.browser.more1", "ISO-8859-1, ISO-8859-15, IBM850, x-mac-roman, windows-1252, ISO-8859-14, ISO-8859-7, x-mac-greek, windows-1253, x-mac-icelandic, ISO-8859-10, ISO-8859-3");
|
||||
pref("intl.charsetmenu.browser.more2", "ISO-8859-4, ISO-8859-13, windows-1257, IBM852, ISO-8859-2, x-mac-ce, windows-1250, x-mac-croatian, IBM855, ISO-8859-5, ISO-IR-111, KOI8-R, x-mac-cyrillic, windows-1251, IBM866, KOI8-U, x-mac-ukrainian, ISO-8859-16, x-mac-romanian");
|
||||
pref("intl.charsetmenu.browser.more3", "GB2312, x-gbk, gb18030, HZ-GB-2312, ISO-2022-CN, Big5, Big5-HKSCS, x-euc-tw, EUC-JP, ISO-2022-JP, Shift_JIS, EUC-KR, x-windows-949, x-johab, ISO-2022-KR");
|
||||
pref("intl.charsetmenu.browser.more3", "GB2312, gbk, gb18030, HZ-GB-2312, ISO-2022-CN, Big5, Big5-HKSCS, x-euc-tw, EUC-JP, ISO-2022-JP, Shift_JIS, EUC-KR, x-windows-949, x-johab, ISO-2022-KR");
|
||||
pref("intl.charsetmenu.browser.more4", "armscii-8, GEOSTD8, TIS-620, ISO-8859-11, windows-874, IBM857, ISO-8859-9, x-mac-turkish, windows-1254, x-viet-tcvn5712, VISCII, x-viet-vps, windows-1258, x-mac-devanagari, x-mac-gujarati, x-mac-gurmukhi");
|
||||
pref("intl.charsetmenu.browser.more5", "ISO-8859-6, windows-1256, IBM864, ISO-8859-8-I, windows-1255, ISO-8859-8, IBM862");
|
||||
pref("intl.charsetmenu.browser.unicode", "UTF-8, UTF-16LE, UTF-16BE");
|
||||
|
|
|
@ -498,7 +498,7 @@ function queryCharsetFromCode(aCode) {
|
|||
codes[1286] = "windows-1256";
|
||||
codes[1536] = "us-ascii";
|
||||
codes[1584] = "GB2312";
|
||||
codes[1585] = "x-gbk";
|
||||
codes[1585] = "gbk";
|
||||
codes[1600] = "EUC-KR";
|
||||
codes[2080] = "ISO-2022-JP";
|
||||
codes[2096] = "ISO-2022-CN";
|
||||
|
|
Загрузка…
Ссылка в новой задаче