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: Achim Gratz
Subject: bug#12392: emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2
Date: Sun, 23 Sep 2012 19:27:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Jan Djärv writes:
> BTW, does doing setlocale LC_NUMERIC before gtk_init make things work?

Not from within emacs, only if it is set as an environment variable.
The locale is reset again to the environment when gstreamer is
initialized, which is likely a bug in gstreamer.  The main window is
already mapped at that time and the command loop is running.

The proper fix is likely to not bother with fixup_locale at all in its
current form, but either implement the lisp reader without
locale-dependent functions or getting a locale object on entry, change
the locale, do whatever it needs to do under changed locale and then
restore the locale.  This is what libraries are often doing for parsing
configuration files, anyway.

There are also some hints that glib expects / recommends to call
setlocale, textdomain, bind_textdomain and bind_textdomain_codeset early
in main on order to properly initialize it.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada






reply via email to

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