Using g_utf8_collate() with gtk_disable_setlocale()



Is there any way to make g_utf8_collate() use the system's locale
when using gtk_disable_setlocale()? In my application I need to use
gtk_disable_setlocale() because having GTK call setlocale() has
several implications which I'd like to avoid (e.g. strtod() suddenly
expecting a comma instead of a point as a decimal separator).

So I'd like to ask if there is any other way to tell glib to use
the system's locale when sorting using g_utf8_collate() so that I
can keep my call to gtk_disable_setlocale() and still use g_utf8_collate
to sort using the system's locale?

Thanks!

-- 
Best regards,
 Andreas Falkenhahn                          mailto:andreas falkenhahn com



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