bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12392: emacs-gtk misinterprets floating-point numbers under certain


From: Holger Arnold
Subject: bug#12392: emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2
Date: Sat, 22 Sep 2012 17:49:33 +0200
User-agent: KMail/4.9.1 (Linux/3.5.4-1-default; KDE/4.9.1; i686; ; )

Andreas Schwab wrote:
> Holger Arnold <holgerar@gmail.com> writes:
> > As to whether calling setlocale(LC_ALL, "") in a library is a bug, what
> > would you expect a library that wants to provide localized messages to
> > do?  Changing the locale before and after each call?  This would be racy
> > in a multi-threaded program.
> 
> There is a good reason why the C standard says "The implementation shall
> behave as if no library function calls the setlocale function."
> Extending that to other libraries improves the quality of
> implementation.

Well, I didn't consider calling setlocale() in GStreamer a great idea, but you 
and Achim are right: doing so is a bug because it's racy.

Nevertheless, setting LC_NUMERIC to "C" behind GTK's back isn't correct 
either.

But in which places is Emacs using localized strings at all?

        Holger





reply via email to

[Prev in Thread] Current Thread [Next in Thread]