]> git.eshelyaron.com Git - emacs.git/commitdiff
Use gtk_disable_setlocale
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Jan 2025 06:15:49 +0000 (22:15 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:06:46 +0000 (19:06 +0100)
* src/pgtkterm.c (pgtk_term_init):
* src/xterm.c (x_term_init):
Use gtk_disable_setlocale rather than fixup_locale.

(cherry picked from commit 06fd3f4e98d683b6595899861e47e931724e7020)

src/pgtkterm.c
src/xterm.c

index 41bec3447993d9687e25868fee74773f56cc31f7..2da1006b6f78966dd9f5cde53493068340bfc6f7 100644 (file)
@@ -7070,13 +7070,10 @@ pgtk_term_init (Lisp_Object display_name, char *resource_name)
        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);
 
index 00c61c486ed342a8a1d5bf440938b509d165afc6..fd61d5df91c3fbfc3c76ba28cf7d423d2c5d0b85 100644 (file)
@@ -30651,8 +30651,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
            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 ();
@@ -30661,8 +30660,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
 
         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 ();