all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why definition in `locale-language-names' does not function on Windows?
@ 2008-03-07 15:30 Zhang Wei
  2008-03-08 12:53 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Wei @ 2008-03-07 15:30 UTC (permalink / raw)
  To: emacs-devel


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.

Emacs set default language environment to "Chinese-GB" during startup,
not "Chinese-GBK" specified in `loclae-language-names'.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Why definition in `locale-language-names' does not function on Windows?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2008-03-08 12:53 UTC (permalink / raw)
  To: Zhang Wei; +Cc: emacs-devel

> 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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-08 12:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.