From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gerhard Newsgroups: gmane.emacs.help Subject: Re: emacs 23.1 font problem Date: Mon, 11 Jan 2010 17:00:48 +0100 Organization: Guest of ProXad - France Message-ID: <4b4b4b31$0$30452$426a74cc@news.free.fr> 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> <87r5pwisdd.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1263262431 27106 80.91.229.12 (12 Jan 2010 02:13:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2010 02:13:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 12 03:13:43 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 1NUWGK-0008VW-Er for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jan 2010 03:13:40 +0100 Original-Received: from localhost ([127.0.0.1]:35137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NUWGK-0003G7-UE for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jan 2010 21:13:40 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp2-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Followup-To: gnu.emacs.help User-Agent: KNode/4.3.2 Original-Lines: 60 Original-NNTP-Posting-Date: 11 Jan 2010 17:00:49 MET Original-NNTP-Posting-Host: 88.165.121.146 Original-X-Trace: 1263225649 news-3.free.fr 30452 88.165.121.146:43503 Original-X-Complaints-To: abuse@proxad.net Original-Xref: news.stanford.edu gnu.emacs.help:176106 X-Mailman-Approved-At: Mon, 11 Jan 2010 21:08:09 -0500 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:71184 Archived-At: David Kastrup wrote: > 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. Thank you for these detailed explanations. I will set my LC_NUMERIC to C. > And why you would want French monetary expressions in a > German locale also escapes me. This is what my distro gave me, since I told it when installing that I lived in France, but still wanted to have a German language environment. These days, it doesn't seem to matter all that much whether your monetary expressions are French or German, anyways ...