From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.devel Subject: Re: set-language-environment Date: Fri, 4 Aug 2006 14:07:33 +0200 Message-ID: <2DC08470-36EB-4457-8C39-7EB438D1EB48@web.de> References: <279CB791-0A55-4D57-B369-B6581DEE3AC8@Web.DE> <85bqr0hihg.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1154693555 16278 80.91.229.2 (4 Aug 2006 12:12:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2006 12:12:35 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 04 14:12:32 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 1G8yX0-0005P8-Cr for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2006 14:12:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8yWw-0005Y4-M9 for ged-emacs-devel@m.gmane.org; Fri, 04 Aug 2006 08:11:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8ySv-0002TZ-3O for emacs-devel@gnu.org; Fri, 04 Aug 2006 08:07:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8ySs-0002RQ-V1 for emacs-devel@gnu.org; Fri, 04 Aug 2006 08:07:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8ySq-0002QO-Nn for emacs-devel@gnu.org; Fri, 04 Aug 2006 08:07:41 -0400 Original-Received: from [217.72.192.221] (helo=fmmailgate01.web.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G8yWM-0003Ed-Qd; Fri, 04 Aug 2006 08:11:19 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate01.web.de (Postfix) with ESMTP id 74C35DE0224; Fri, 4 Aug 2006 14:07:36 +0200 (CEST) Original-Received: from [87.193.10.164] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.107 #114) id 1G8ySl-0006XM-00; Fri, 04 Aug 2006 14:07:35 +0200 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Kenichi Handa X-Mailer: Apple Mail (2.752.2) X-Sender: Peter_Dyballa@web.de 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:58093 Archived-At: Am 04.08.2006 um 13:10 schrieb Kenichi Handa: > Emacs is in German language environment and the default > coding system is set to iso-8859-15. Definitely not in my copy of GNU Emacs 22.0.50: In GNU Emacs 22.0.50.1 (powerpc-apple-darwin8.7.0, X toolkit, Xaw3d scroll bars) of 2006-08-03 on Latsche X server distributor `The XFree86 Project, Inc', version 11.0.40400000 configured using `configure '--without-carbon' '--with-x' '--without- sound' '--without-pop' '--with-xpm' '--with-jpeg' '--with-tiff' '-- with-gif' '--with-png' '--enable-locallisppath=/Library/Application Support/Emacs/calendar22:/Library/Application Support/Emacs/preview:/ Library/Application Support/Emacs/auctex/images:/Library/Application Support/Emacs/auctex:/Library/Application Support/Emacs' 'CFLAGS=- ggdb -pipe -fPIC -mcpu=7450 -fast -mtune=7450 -mpim-altivec -ftree- vectorize -fomit-frame-pointer -foptimize-register-move -fcprop- registers -frename-registers -freorder-blocks -fpeephole -fno- crossjumping' 'CPPFLAGS=-no-cpp-precomp -I/usr/include/openssl -I/usr/ local/include -I/sw/include' 'LDFLAGS=-dead_strip -L/usr/X11R6/lib -L/ usr/local/lib -L/sw/lib/ncurses -L/sw/lib'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: de_DE.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: TeX-PDF-mode: t shell-dirtrack-mode: t display-time-mode: t desktop-save-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Having in .emacs (set-language-environment 'German) *scratch*, *Messages*, *mail*, dired buffers ... have a modeline starting with -1: which does not stand for ISO 8859-15. '0' stands stands for ISO 8859-15. And relying on LC_CTYPE or LANG, as usual, I get utf-8 encoded buffers, just as I wish and prefer. When I first used this statement I thought that GNU Emacs would set a few things 'right,' and prefer German man pages, too, or messages/ tool tips/comand output/holidays/calendar would come in German. It took a long time for me to understand that this particular statement was resetting what I had prepared with shell environment variables. Could be set-language-environment is an obsolete function now that GNU Emacs understands LC_ALL or LANG ... -- Greetings Pete Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. -- Bill Watterson, in his comic strip Calvin and Hobbes