Call for vetoes: Setting the global C++ locale in Gtk::Main



Hi,

the attached patch is currently being considered for application to
gtkmm, both stable and unstable.  Since it changes user-visible
behavior, it is possible that it may break some odd piece of code out
there.

If it breaks your code, raise your veto now. :-)

The change is to initialize the global C++ locale in the constructor of
Gtk::Main.  The current situation is that the global C library locale is
initialized by gtk_init() to the user locale from the environment.  This
results in an inconsistency because the global C++ locale is independent
from the the global C library locale.

The proposed patch makes Gtk::Main initialize the C++ locale as well, to
complement the setting of the global C library locale by GTK+.  This is
particularly important for functions which make implicit use of the
global C++ locale such as Glib::ustring::format().

Of course, this change could potentially break code which relies on the
global C++ locale being set to the classic POSIX locale.  So if you are
concerned about that scenario, step up now.

Cheers,
--Daniel







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