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



On Tue, Mar 30, 2010 at 1:18 PM, Daniel Elstner
<daniel kitta googlemail com> wrote:
> 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.

daniel, you should know that if the C++ locale stuff is used on OS X
with *anything* except "C" or "POSIX" as the locale, it will abort the
application.

this is a bug that has been in place since Panther and remains
(AFAICT) in Snow Leopard (the latest OS X release).

i know it seems unbelievable, but it just is, alas.

--p


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