[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-unicode-2: miscellaneous addendum for coding system gbk and gb
From: |
Zhang Wei |
Subject: |
Re: emacs-unicode-2: miscellaneous addendum for coding system gbk and gb18030 |
Date: |
Mon, 27 Nov 2006 14:25:34 +0800 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 |
Kenichi Handa <address@hidden> writes:
[...]
> Are you sure that those changes are correct? The attached
> program (when invoked under zh_CN locale prints this.
>
> CODESET=GB2312
>
> Doesn't it mean that we should be in Chinese-GB
> lang. env. under zh_CN locale?
I just checked the locale.alias file, zh_CN is an alias of zh_CN.GB2312,
so the patch is not quite safe, my original purpose is set lang. env. to
Chinese-GB under zh_CN.UTF-8, so may be we should do this:
--- orig/lisp/international/mule-cmds.el
+++ mod/lisp/international/mule-cmds.el
@@ -2262,8 +2262,8 @@
("zh_CN.GB2312" "Chinese-GB")
("zh_CN.GBK" "Chinese-GBK")
("zh_CN.GB18030" "Chinese-GB18030")
+ ("zh_CN.UTF-8" . "Chinese-GBK")
("zh_CN" . "Chinese-GB")
("zh" . "Chinese-GB")
("zu" . "Latin-1") ; Zulu
;; ISO standard locales
@@ -2281,7 +2281,7 @@
("sp" . "Cyrillic-ISO") ; Serbian (Cyrillic alphabet), e.g. X11R6.4
("su" . "Latin-1") ; Finnish, e.g. Solaris 2.6
("jp" . "Japanese") ; e.g. MS Windows
- ("chs" . "Chinese-GB") ; MS Windows Chinese Simplified
+ ("chs" . "Chinese-GBK") ; MS Windows Chinese Simplified
("cht" . "Chinese-BIG5") ; MS Windows Chinese Traditional
("gbz" . "UTF-8") ; MS Windows Dari Persian
("div" . "UTF-8") ; MS Windows Divehi (Maldives)