emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

set-locale-environement: strange default detection


From: Sascha Wilde
Subject: set-locale-environement: strange default detection
Date: Wed, 18 Jul 2007 12:14:35 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Hi *,

a friend of mine (unfortunately a vim user, but a nice guy otherwise),
tried emacs on Gnu/Linux and was surprised that `C-h t' presented him
the German version of the tutorial.

His i18n environment is:
LANG=en_US
address@hidden
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=POSIX
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

so it should be clear, that, also he wants to be able to handle German
texts properly, he wants his user interfaces in English.

But set-locale-environment tests LC_CTYPE _before_ LANG, from the
doc string: 

  If LOCALE-NAME is nil, its value is taken from the environment
  variables LC_ALL, LC_CTYPE and LANG (the first one that is set).

Which IMO is an bug.  (LC_CTYPE is not supposed to be used as an
indicator for the ui language at all, but if it is used, it should be
used as an last resort.)

cheers
sascha
-- 
"Anyone who slaps a 'this page is best viewed with Browser X' label on a Web 
page appears to be yearning for the bad old days, before the Web, when you had 
very little chance of reading a document written on another computer, another 
word processor, or another network." -- Tim Berners-Lee, July 1996




reply via email to

[Prev in Thread] Current Thread [Next in Thread]