From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: emacs 23.1 font problem Date: Mon, 11 Jan 2010 16:16:46 +0100 Organization: Organization?!? Message-ID: <87r5pwisdd.fsf@lola.goethe.zz> References: <4b4afbc1$0$32349$426a74cc@news.free.fr> <878wc5j5go.fsf@lola.goethe.zz> <4b4b0313$0$14661$426a74cc@news.free.fr> <87vdf8ivtd.fsf@lola.goethe.zz> <4b4b38a9$0$18006$426a74cc@news.free.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263224672 24106 80.91.229.12 (11 Jan 2010 15:44:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2010 15:44:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 11 16:44:26 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NUMRI-000670-Qa for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jan 2010 16:44:21 +0100 Original-Received: from localhost ([127.0.0.1]:45178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUMRJ-00028K-8e for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jan 2010 10:44:21 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!xlned.com!feeder3.xlned.com!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.weisnix.org!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Cancel-Lock: sha1:U1Aj3UPmo3mU82HfNjr8kzUytyQ= Original-Lines: 49 Original-NNTP-Posting-Date: 11 Jan 2010 16:16:48 CET Original-NNTP-Posting-Host: 73bc941f.newsspool4.arcor-online.net Original-X-Trace: DXC=gQ8[=V@UEJ=NTD55K=4IUK5MOK`lXEB@H^2_R6LW]odmG6 Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:176105 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71173 Archived-At: Gerhard writes: >>> In GNU Emacs 23.1.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.3) >>> of 2010-01-08 on localhost >>> Windowing system distributor `The X.Org Foundation', version >>> 11.0.10605000 Important settings: >>> value of $LC_ALL: nil >>> value of $LC_COLLATE: de_DE.UTF-8 >>> value of $LC_CTYPE: de_DE.UTF-8 >>> value of $LC_MESSAGES: de_DE.UTF-8 >>> value of $LC_MONETARY: fr_FR.UTF-8 >>> value of $LC_NUMERIC: fr_FR.UTF-8 >>> value of $LC_TIME: de_DE.UTF-8 >>> value of $LANG: de_DE.UTF-8 >>> value of $XMODIFIERS: @im=none >>> locale-coding-system: utf-8-unix >>> default enable-multibyte-characters: t >> >> What happens when you start Emacs with >> >> LC_NUMERIC=C emacs >> >> ? > Everything seems to work fine now, great! > > Am I right in supposing that this resets locales only for emacs, and > that there should be no undesired side-effects elsewhere? It will affect every program started from within Emacs as well. I am not clear what code is responsible for this: the problem is likely because either scanf or printf or its equivalents use "," instead of "." in numbers. Whether this happens inside of Emacs proper or in GTK, I don't know. In general, you rarely want LC_NUMERIC to be different from "C" for _anything_. Programming languages and libraries and utilities break because programmers hardly ever expect that the equivalent of printf("%4.2f",3.0) would result in "3,00" in foreign locales. I know that some versions of Ghostscript ceased being able to parse numbers in PostScript programs in such locales. So while the above invocation is just for Emacs and subprocesses, your setting of LC_NUMERIC is likely going to cause trouble occasionally also elsewhere. And why you would want French monetary expressions in a German locale also escapes me. -- David Kastrup