id = g_log_set_handler ("GLib", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL
| G_LOG_FLAG_RECURSION, my_log_handler, NULL);
- /* gtk_init does set_locale. Fix locale before and after. */
- fixup_locale ();
+ gtk_disable_setlocale ();
unrequest_sigio (); /* See comment in x_display_ok. */
gtk_init (&argc, &argv2);
request_sigio ();
- fixup_locale ();
-
g_log_remove_handler ("GLib", id);
Call before gtk_init so Gtk+ event filters comes after our. */
gdk_window_add_filter (NULL, event_handler_gdk, NULL);
- /* gtk_init does set_locale. Fix locale before and after. */
- fixup_locale ();
+ gtk_disable_setlocale ();
unrequest_sigio (); /* See comment in x_display_ok. */
gtk_init (&argc, &argv2);
request_sigio ();
xg_initialize ();
- /* Do this after the call to xg_initialize, because when
- Fontconfig is used, xg_initialize calls its initialization
+ /* When Fontconfig is used, xg_initialize calls its initialization
function which in some versions of Fontconfig calls setlocale. */
fixup_locale ();