aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-10-06 10:55:25 +0800
committerPo Lu2022-10-06 10:56:27 +0800
commit8e8d37aa326870ebf0ff6c07b4e37ae6abcf79b6 (patch)
tree36f50fe87723e2d7b43ff0a25e0a085bb010ed13 /src
parentc690d1f15d274d50ed21d4aa1b98a23de8d7e1e6 (diff)
downloademacs-8e8d37aa326870ebf0ff6c07b4e37ae6abcf79b6.tar.gz
emacs-8e8d37aa326870ebf0ff6c07b4e37ae6abcf79b6.zip
Minor fixes to IM locale handling
* lisp/term/x-win.el (x-get-input-coding-system): Translate locales. * src/xterm.c (x_term_init): If the X library doesn't support the current locale, don't set up input methods.
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 f3bfae457ba..37e7916486e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -29252,7 +29252,11 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
29252#endif 29252#endif
29253 29253
29254#ifdef HAVE_X_I18N 29254#ifdef HAVE_X_I18N
29255 xim_initialize (dpyinfo, resource_name); 29255 /* Avoid initializing input methods if the X library does not
29256 support Emacs's locale. When the current locale is not
29257 supported, decoding input method strings becomes undefined. */
29258 if (!XSupportsLocale ())
29259 xim_initialize (dpyinfo, resource_name);
29256#endif 29260#endif
29257 29261
29258 xsettings_initialize (dpyinfo); 29262 xsettings_initialize (dpyinfo);