From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.devel Subject: Re: [reinersteib+gmane@imap.cc: language environment should not be derived from LC_CTYPE] Date: Sat, 25 Nov 2006 10:13:29 +0100 Message-ID: References: <87irh5q5hz.fsf@furball.mit.edu> Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164446039 26886 80.91.229.2 (25 Nov 2006 09:13:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Nov 2006 09:13:59 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, Reiner Steib Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 25 10:13:55 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gntbe-0001Px-Bg for ged-emacs-devel@m.gmane.org; Sat, 25 Nov 2006 10:13:54 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gntbd-00036z-MF for ged-emacs-devel@m.gmane.org; Sat, 25 Nov 2006 04:13:53 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GntbN-00035l-Dk for emacs-devel@gnu.org; Sat, 25 Nov 2006 04:13:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GntbM-00035A-6s for emacs-devel@gnu.org; Sat, 25 Nov 2006 04:13:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GntbL-00034i-JC for emacs-devel@gnu.org; Sat, 25 Nov 2006 04:13:35 -0500 Original-Received: from [134.60.1.1] (helo=mail.uni-ulm.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GntbI-0002mQ-W4; Sat, 25 Nov 2006 04:13:33 -0500 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.8/8.13.8) with ESMTP id kAP9DUwV008693; Sat, 25 Nov 2006 10:13:30 +0100 (MET) Original-Received: from viandante.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by bridgekeeper.physik.uni-ulm.de (Postfix) with SMTP id 012CE1236A; Sat, 25 Nov 2006 10:13:29 +0100 (CET) Original-Received: (nullmailer pid 32636 invoked by uid 170); Sat, 25 Nov 2006 09:13:29 -0000 Original-To: Chong Yidong X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l; 3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2; n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3, Reiner Steib , rms@gnu.org, emacs-devel@gnu.org In-Reply-To: <87irh5q5hz.fsf@furball.mit.edu> (Chong Yidong's message of "Thu\, 23 Nov 2006 15\:20\:56 -0500") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux) X-DCC-dcc.uncw.edu-Metrics: gemini 1201; Body=4 Fuz1=4 Fuz2=4 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:62774 Archived-At: On Thu, Nov 23 2006, Chong Yidong wrote: > Reiner Steib wrote: >> $ env|grep -e LC_ -e LANG >> LANG=en_US >> LC_COLLATE=POSIX >> LC_CTYPE=de_DE@euro >> >> $ emacs -Q >> >> `current-language-environment's value is "German" and I get the German >> tutorial. I expected to see the English version and an English >> language environment: >> >> | `LC_CTYPE' >> | This category applies to classification and conversion of >> | characters, and to multibyte and wide characters >> | [ Quotation re-added: ] >> | `LC_MESSAGES' >> | This category applies to selecting the language used in the user >> | interface for message translation (*note The Uniforum approach::; >> | *note Message catalogs a la X/Open::) and contains regular >> | expressions for affirmative and negative responses. >> | [...] >> | `LANG' >> | If this environment variable is defined, its value specifies the >> | locale to use for all purposes except as overridden by the >> | variables above. > >>>From lisp/international/mule-cmds.el: > > (defun set-locale-environment (&optional locale-name) > "Set up multi-lingual environment for using LOCALE-NAME. > This sets the language environment, the coding system priority, > the default input method and sometimes other things. > ... > 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)." > > Both `set-locale-environment' and the glib documentation say that LANG > only takes effect LC_CTYPE is undefined. My understanding is that LC_CTYPE should be irrelevant with regards to the "language used in the user interface for message translation", because LC_MESSAGES is the relevant locale variable for this. If LC_MESSAGES is undefined, LANG should be used. E.g. in GNU coreutils: $ /bin/ls --version ls (GNU coreutils) 5.3.0 Written by Richard Stallman and David MacKenzie. $ LC_MESSAGES=de_DE /bin/ls /foo-bar /bin/ls: /foo-bar: Datei oder Verzeichnis nicht gefunden But as no-one has complained about this before such a situation (LC_MESSAGES != LC_CTYPE) might be rare, we might change this after the release (and put it into etc/TODO?). Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/