From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Why definition in `locale-language-names' does not function on Windows? Date: Sat, 08 Mar 2008 14:53:34 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1204980833 990 80.91.229.12 (8 Mar 2008 12:53:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Mar 2008 12:53:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Zhang Wei Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 08 13:54:20 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JXyZA-0002MW-4B for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 13:54:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXyYc-00023N-6n for ged-emacs-devel@m.gmane.org; Sat, 08 Mar 2008 07:53:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXyYX-00022S-UU for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:53:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXyYW-00020i-9s for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:53:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXyYW-00020d-6Q for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:53:40 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXyYV-00074E-Lr for emacs-devel@gnu.org; Sat, 08 Mar 2008 07:53:39 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-196-141.inter.net.il [83.130.196.141]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id FFZ65725 (AUTH halo1); Sat, 8 Mar 2008 14:53:34 +0200 (IST) In-reply-to: (message from Zhang Wei on Fri, 07 Mar 2008 23:30:56 +0800) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:91715 Archived-At: > From: Zhang Wei > 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.