From: Eli Zaretskii <eliz@gnu.org>
To: Zhang Wei <id.brep@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Why definition in `locale-language-names' does not function on Windows?
Date: Sat, 08 Mar 2008 14:53:34 +0200 [thread overview]
Message-ID: <u7igdxtpt.fsf@gnu.org> (raw)
In-Reply-To: <E1JXeXA-0001y1-La@localhost> (message from Zhang Wei on Fri, 07 Mar 2008 23:30:56 +0800)
> From: Zhang Wei <id.brep@gmail.com>
> Date: Fri, 07 Mar 2008 23:30:56 +0800
>
>
> In mule-cmds.el line 2309, there is a language environment definition in
> `locale-language-names' for MS Windows Chinese Simplified:
>
> ("chs" . "Chinese-GBK") ; MS Windows Chinese Simplified
>
> but when emacs start, I got the following warning:
>
> Warning: Default coding system `chinese-iso-8bit' disagrees with
> system codeset `cp936' for this locale.
This warning is issued because `(locale-info 'codeset)' on Windows
returns the system ANSI code page (a.k.a. ACP). Emacs issues the
system call that is equivalent to
GetLocaleInfo (GetThreadLocale (),
LOCALE_IDEFAULTANSICODEPAGE | LOCALE_USE_CP_ACP,
NULL, 0);
A recent discussion concluded that the warning can be safely removed,
see
http://lists.gnu.org/archive/html/emacs-devel/2008-02/msg00944.html
> Emacs set default language environment to "Chinese-GB" during startup,
> not "Chinese-GBK" specified in `loclae-language-names'.
Sorry, I'm not sure I follow: how did you came to the above
conclusion, and how is it connected to the warning? If what you say
is that Emacs does not honor the locale settings, and that this
warning is an evidence, please elaborate.
prev parent reply other threads:[~2008-03-08 12:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-07 15:30 Why definition in `locale-language-names' does not function on Windows? Zhang Wei
2008-03-08 12:53 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=u7igdxtpt.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=id.brep@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.