From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Vollmer To: Hisao Suzuki Cc: guile-gtk@sourceware.cygnus.com Subject: Re: guile-gtk-0.17 i18n Date: Tue, 22 Feb 2000 11:45:00 -0000 Message-id: <87n1otaw0v.fsf@zagadka.ping.de> References: X-SW-Source: 2000-q1/msg00042.html Hisao Suzuki writes: > Marius Vollmer wrote: > > > Why do you have to call gtk_set_locale before gtk_init? Is there a > > good reason for this or can it be considered a bug in Gtk+? > > gtk_init parses locale-specific gtkrc file(s) and opens a > locale-specific input method via XOpenIM(3x) of Xlib. The > locale is supposed to have been already set. > > [...] > > I don't know why gtk_init doesn't call gtk_set_locale. Maybe it > is just a historical reason, or maybe some applications want to > run in "C" locale against any LANG environment variable value. Aha, I see. Basically, gtk_set_locale is a not a completely harmless operation because it changes the environment of the whole process (via setlocale) and not just for the Gtk+ library. This should maybe not be done unconditionally. However, I now think that gtk_set_locale is an important part of initializing Gtk+ and I think it is reasonable to just expect all programs to work correctly when setlocale has been called. So, your change goes in! [ I'm sorry, I know that this change has been requested previously, and I turned it down then. ] - Marius