From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: [reinersteib+gmane@imap.cc: language environment should not be derived from LC_CTYPE] Date: Thu, 23 Nov 2006 15:20:56 -0500 Message-ID: <87irh5q5hz.fsf@furball.mit.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1164403074 32120 80.91.229.2 (24 Nov 2006 21:17:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Nov 2006 21:17:54 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 24 22:17:50 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 1GniQc-0005HB-BH for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2006 22:17:46 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GniQb-0004Vc-JV for ged-emacs-devel@m.gmane.org; Fri, 24 Nov 2006 16:17:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GniPd-0003tI-Of for emacs-devel@gnu.org; Fri, 24 Nov 2006 16:16:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GniPd-0003sg-Cx for emacs-devel@gnu.org; Fri, 24 Nov 2006 16:16:45 -0500 Original-Received: from [199.232.41.67] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GniPd-0002Qo-74; Fri, 24 Nov 2006 16:16:45 -0500 Original-Received: from [18.72.1.2] (helo=south-station-annex.mit.edu) by mx20.gnu.org with esmtp (Exim 4.52) id 1GnL6L-00031E-OW; Thu, 23 Nov 2006 15:23:17 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id kANKL6VW010126; Thu, 23 Nov 2006 15:21:07 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id kANKKxwo005056; Thu, 23 Nov 2006 15:20:59 -0500 (EST) Original-Received: from furball.mit.edu (SYDNEYPACIFIC-THREE-EIGHTY-FIVE.MIT.EDU [18.95.6.130]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id kANKKuqS022063; Thu, 23 Nov 2006 15:20:58 -0500 (EST) Original-Received: from cyd by furball.mit.edu with local (Exim 3.36 #1 (Debian)) id 1GnL44-00010c-00; Thu, 23 Nov 2006 15:20:56 -0500 Original-To: Reiner Steib , rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed\, 22 Nov 2006 21\:52\:02 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: -2.066 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:62738 Archived-At: > I have the following locale settings [1]: > > $ 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 > | > | `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. I think the only thing for this situation is for the user to set the language environment in the .emacs file.