all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs 23.1 font problem
Date: Mon, 11 Jan 2010 16:16:46 +0100	[thread overview]
Message-ID: <87r5pwisdd.fsf@lola.goethe.zz> (raw)
In-Reply-To: 4b4b38a9$0$18006$426a74cc@news.free.fr

Gerhard <feldspat@gmx.net> 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


  reply	other threads:[~2010-01-11 15:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-11 10:21 emacs 23.1 font problem Gerhard
2010-01-11 10:33 ` David Kastrup
2010-01-11 10:50   ` browsing cscope-marker-ring Maindoor
2010-01-11 10:53   ` emacs 23.1 font problem Gerhard
2010-01-11 14:02     ` David Kastrup
2010-01-11 14:41       ` Gerhard
2010-01-11 15:16         ` David Kastrup [this message]
2010-01-11 16:00           ` Gerhard
2010-01-11 19:18           ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r5pwisdd.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.