all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Achim Gratz <Stromeko@nexgo.de>
To: 12392@debbugs.gnu.org
Subject: bug#12392: emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2
Date: Sat, 22 Sep 2012 18:36:30 +0200	[thread overview]
Message-ID: <87ehluf20h.fsf@Rainer.invalid> (raw)
In-Reply-To: <87r4qbodec.fsf@Rainer.invalid>

Holger Arnold writes:
> May I cite: "Note, however, that changing the locale after GTK+ is initialized 
> may produce inconsistent results and is not really supported."  This warning 
> is not related to this particular function, as gtk_set_locale() does nothing 
> more than calling setlocale(LC_ALL, "").  Emacs calls this function via 
> gtk_init().

That part is documented and it can be suppressed via
gtk_disable_setlocale() at the discretion of the application.  The
warning about inconsistent results is about locale-dependent things set
up in gtk_init() that would need to be re-run if the locale changes.

> Note that _any_ program having a localized user interface has to call 
> setlocale(LC_ALL, "") at the start to set the locale to the value specified by 
> its environment.  gtk_init() simply does this for you.  If you don't like that 
> behavior, you can initialize GTK without calling gtk_init() (but this wouldn't 
> help with GStreamer).

Yes and that's a bug right there in GStreamer.  If the locale
environment is already set up, it has no business in querying the
initial environment again.

> 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.

An application may chose to never set up a locale and there should be a
way to tell libraries to respect that (I don't think there is a
foolproof way to check for whether a locale has already been set up by
the application).  Gtk has that, but GStreamer is missing or ignoring
it.  Plus it must be a development that happened in a version between
12.1 and 12.2.  Here's another one with the same or very similar
problem:

https://github.com/pavouk/lgi/issues/19

I don't know where the "gstreamer override file" can be found that he
talks about.  :-(


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

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds






  parent reply	other threads:[~2012-09-22 16:36 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-09  7:37 bug#12392: 24.2; emacs-gtk misinterprets floating-point numbers under certain locales on openSUSE 12.2 Achim Gratz
2012-09-09  7:43 ` Achim Gratz
2012-09-09  8:09 ` Achim Gratz
2012-09-09  8:30 ` Achim Gratz
2012-09-10 17:37   ` Jan Djärv
2012-09-10 19:00     ` Achim Gratz
2012-09-13  8:20 ` bug#12392: " Paul Eggert
2012-09-13 17:59   ` Achim Gratz
2012-09-14 15:58   ` Achim Gratz
2012-09-21  9:59   ` Holger Arnold
2012-09-22  6:19     ` Achim Gratz
2012-09-22 14:38       ` Holger Arnold
2012-09-22 15:08         ` Andreas Schwab
2012-09-22 15:49           ` Holger Arnold
2012-09-22 16:07             ` Eli Zaretskii
2012-09-22 17:04               ` Holger Arnold
2012-09-22 17:19                 ` Jan Djärv
2012-09-22 17:22                   ` Jan Djärv
2012-09-22 16:54             ` Jan Djärv
2012-09-22 16:55               ` Jan Djärv
2012-09-22 17:00                 ` Holger Arnold
2012-09-23 10:04                   ` Jan Djärv
2012-09-23 17:27                 ` Achim Gratz
2012-09-23 19:58                   ` Holger Arnold
2012-09-22 16:56               ` Holger Arnold
2012-09-22 16:02         ` Eli Zaretskii
2012-09-22 16:38           ` Holger Arnold
2012-09-22 16:41             ` Eli Zaretskii
2012-09-22 16:54               ` Holger Arnold
2012-09-22 17:10                 ` Eli Zaretskii
2012-09-22 17:18                   ` Holger Arnold
2012-09-22 19:02                     ` Eli Zaretskii
2012-09-22 19:44                       ` Holger Arnold
2012-09-22 16:36         ` Achim Gratz [this message]
2012-10-07 10:57           ` Holger Arnold
2012-09-21 20:08   ` Holger Arnold

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=87ehluf20h.fsf@Rainer.invalid \
    --to=stromeko@nexgo.de \
    --cc=12392@debbugs.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.