aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2018-03-14 20:11:16 +0200
committerEli Zaretskii2018-03-14 20:11:16 +0200
commit36a1d52814562bb589f03226c31ca823f0518fd2 (patch)
tree92d2ce7725ac85d88da4a52ebf37ba4968489006 /src
parent675edecf6102a20b3482544315c654fde4b6236e (diff)
downloademacs-36a1d52814562bb589f03226c31ca823f0518fd2.tar.gz
emacs-36a1d52814562bb589f03226c31ca823f0518fd2.zip
Fix problems caused by fontconfig-2.13.0
* src/xterm.c (x_term_init): Call fixup_locale after xg_initialize, to countermand the call to setlocale in some versions of fontconfig. (Bug#30788)
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index c5163aa990a..7b445e5f46c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -12411,12 +12411,16 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
12411 unrequest_sigio (); /* See comment in x_display_ok. */ 12411 unrequest_sigio (); /* See comment in x_display_ok. */
12412 gtk_init (&argc, &argv2); 12412 gtk_init (&argc, &argv2);
12413 request_sigio (); 12413 request_sigio ();
12414 fixup_locale ();
12415 12414
12416 g_log_remove_handler ("GLib", id); 12415 g_log_remove_handler ("GLib", id);
12417 12416
12418 xg_initialize (); 12417 xg_initialize ();
12419 12418
12419 /* Do this after the call to xg_initialize, because when
12420 Fontconfig is used, xg_initialize calls its initialization
12421 function which in some versions of Fontconfig calls setlocale. */
12422 fixup_locale ();
12423
12420 dpy = DEFAULT_GDK_DISPLAY (); 12424 dpy = DEFAULT_GDK_DISPLAY ();
12421 12425
12422#if ! GTK_CHECK_VERSION (2, 90, 0) 12426#if ! GTK_CHECK_VERSION (2, 90, 0)