all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* set-locale-environement: strange default detection
@ 2007-07-18 10:14 Sascha Wilde
  2007-07-18 10:19 ` David Kastrup
  2007-07-18 18:54 ` Reiner Steib
  0 siblings, 2 replies; 35+ messages in thread
From: Sascha Wilde @ 2007-07-18 10:14 UTC (permalink / raw)
  To: emacs-devel; +Cc: Thomas Arendsen Hein

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
LC_CTYPE=de_DE@euro
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

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

end of thread, other threads:[~2007-07-26 12:54 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-18 10:14 set-locale-environement: strange default detection Sascha Wilde
2007-07-18 10:19 ` David Kastrup
2007-07-18 10:40   ` Sascha Wilde
2007-07-18 10:50     ` David Kastrup
2007-07-18 11:04       ` Jan Djärv
2007-07-18 12:28       ` Sascha Wilde
2007-07-18 18:54 ` Reiner Steib
2007-07-18 21:24   ` David Kastrup
2007-07-19  8:21     ` Sascha Wilde
2007-07-19  9:16       ` David Kastrup
2007-07-22 14:59         ` Better language detection for tutorial (was: set-locale-environement: strange default detection) Sascha Wilde
2007-07-22 15:41           ` Andreas Schwab
2007-07-22 15:44             ` Better language detection for tutorial David Kastrup
2007-07-22 23:16               ` Andreas Schwab
2007-07-22 20:20             ` Sascha Wilde
2007-07-23  3:11               ` Eli Zaretskii
2007-07-23  9:25                 ` Sascha Wilde
2007-07-23 19:29                   ` Eli Zaretskii
2007-07-23 20:29                     ` Sascha Wilde
2007-07-23 20:38                       ` David Kastrup
2007-07-24  6:18                       ` Eli Zaretskii
2007-07-24  7:17                         ` Kenichi Handa
2007-07-24  7:36                           ` Eli Zaretskii
2007-07-24  7:53                             ` Kenichi Handa
2007-07-24 18:45                               ` Eli Zaretskii
2007-07-25  1:01                                 ` Kenichi Handa
2007-07-25  3:14                                   ` Eli Zaretskii
2007-07-25  4:48                                     ` Kenichi Handa
2007-07-25 19:24                                       ` Eli Zaretskii
2007-07-26  2:29                                         ` Kenichi Handa
2007-07-26 11:40                                           ` Eli Zaretskii
2007-07-26 12:19                                             ` Kenichi Handa
2007-07-26 12:25                                               ` Eli Zaretskii
2007-07-26 12:54                                                 ` Kenichi Handa
2007-07-20 17:42     ` set-locale-environement: strange default detection Reiner Steib

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.