aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2025-01-26 22:15:49 -0800
committerPaul Eggert2025-01-26 23:05:52 -0800
commit06fd3f4e98d683b6595899861e47e931724e7020 (patch)
treefe59cb45a342b631bfa54ca5228b0f6a29ed546c
parenta1e4f6a35c70cf265c77b445288f4e0ab6ffc19f (diff)
downloademacs-06fd3f4e98d683b6595899861e47e931724e7020.tar.gz
emacs-06fd3f4e98d683b6595899861e47e931724e7020.zip
Use gtk_disable_setlocale
* src/pgtkterm.c (pgtk_term_init): * src/xterm.c (x_term_init): Use gtk_disable_setlocale rather than fixup_locale.
-rw-r--r--src/pgtkterm.c5
-rw-r--r--src/xterm.c6
2 files changed, 3 insertions, 8 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 41bec344799..2da1006b6f7 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -7070,13 +7070,10 @@ pgtk_term_init (Lisp_Object display_name, char *resource_name)
7070 id = g_log_set_handler ("GLib", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL 7070 id = g_log_set_handler ("GLib", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL
7071 | G_LOG_FLAG_RECURSION, my_log_handler, NULL); 7071 | G_LOG_FLAG_RECURSION, my_log_handler, NULL);
7072 7072
7073 /* gtk_init does set_locale. Fix locale before and after. */ 7073 gtk_disable_setlocale ();
7074 fixup_locale ();
7075 unrequest_sigio (); /* See comment in x_display_ok. */ 7074 unrequest_sigio (); /* See comment in x_display_ok. */
7076 gtk_init (&argc, &argv2); 7075 gtk_init (&argc, &argv2);
7077 request_sigio (); 7076 request_sigio ();
7078 fixup_locale ();
7079
7080 7077
7081 g_log_remove_handler ("GLib", id); 7078 g_log_remove_handler ("GLib", id);
7082 7079
diff --git a/src/xterm.c b/src/xterm.c
index 00c61c486ed..fd61d5df91c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -30651,8 +30651,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
30651 Call before gtk_init so Gtk+ event filters comes after our. */ 30651 Call before gtk_init so Gtk+ event filters comes after our. */
30652 gdk_window_add_filter (NULL, event_handler_gdk, NULL); 30652 gdk_window_add_filter (NULL, event_handler_gdk, NULL);
30653 30653
30654 /* gtk_init does set_locale. Fix locale before and after. */ 30654 gtk_disable_setlocale ();
30655 fixup_locale ();
30656 unrequest_sigio (); /* See comment in x_display_ok. */ 30655 unrequest_sigio (); /* See comment in x_display_ok. */
30657 gtk_init (&argc, &argv2); 30656 gtk_init (&argc, &argv2);
30658 request_sigio (); 30657 request_sigio ();
@@ -30661,8 +30660,7 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
30661 30660
30662 xg_initialize (); 30661 xg_initialize ();
30663 30662
30664 /* Do this after the call to xg_initialize, because when 30663 /* When Fontconfig is used, xg_initialize calls its initialization
30665 Fontconfig is used, xg_initialize calls its initialization
30666 function which in some versions of Fontconfig calls setlocale. */ 30664 function which in some versions of Fontconfig calls setlocale. */
30667 fixup_locale (); 30665 fixup_locale ();
30668 30666