unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Sascha Wilde <wilde@sha-bang.de>
To: emacs-devel@gnu.org
Cc: Thomas Arendsen Hein <thomas@intevation.de>
Subject: set-locale-environement: strange default detection
Date: Wed, 18 Jul 2007 12:14:35 +0200	[thread overview]
Message-ID: <m2k5sy2f3o.fsf@kenny.sha-bang.de> (raw)

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

             reply	other threads:[~2007-07-18 10:14 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-18 10:14 Sascha Wilde [this message]
2007-07-18 10:19 ` set-locale-environement: strange default detection 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

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2k5sy2f3o.fsf@kenny.sha-bang.de \
    --to=wilde@sha-bang.de \
    --cc=emacs-devel@gnu.org \
    --cc=thomas@intevation.de \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).