[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: |
Kenichi Handa |
Subject: |
Re: emacs-unicode-2: miscellaneous addendum for coding system gbk and gb18030 |
Date: |
Mon, 27 Nov 2006 14:58:29 +0900 |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.91 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
In article <address@hidden>, Richard Stallman <address@hidden> writes:
> Zhang Wei has signed an assignment for future changes.
Ok. I've installed all changes except for the one for
mule-cmds.el.
--- 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" . "Chinese-GB")
- ("zh" . "Chinese-GB")
+ ("zh_CN" . "Chinese-GBK")
+ ("zh" . "Chinese-GBK")
("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)
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?
---
Kenichi Handa
address@hidden
------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <langinfo.h>
int
main (int argc, char **argv)
{
setlocale (LC_ALL, "");
printf ("CODESET=%s\n", nl_langinfo (CODESET));
exit (0);
}