diff options
author | Po Lu <luangruo@yahoo.com> | 2022-01-22 16:16:26 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-01-22 16:16:26 +0800 |
commit | 2b72558527fd2f31274f665244ad84fe90a19bd5 (patch) | |
tree | ac58e3957cdd5ae2d1d499d3ced3c0d50191d209 | |
parent | 246557f33e13a437d3582445f914a7170ee11027 (diff) | |
download | emacs-2b72558527fd2f31274f665244ad84fe90a19bd5.tar.gz |
Use locale coding system to decode XIM preedit text
* src/xfns.c (x_xim_text_to_utf8_unix): XIMs typically return
text in the locale coding system, so use that instead.
-rw-r--r-- | src/xfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index a1435d53513..7123198724a 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3051,7 +3051,7 @@ x_xim_text_to_utf8_unix (XIMText *text, ptrdiff_t *length) } nbytes = strlen (text->string.multi_byte); - setup_coding_system (Qutf_8_unix, &coding); + setup_coding_system (Vlocale_coding_system, &coding); coding.mode |= (CODING_MODE_LAST_BLOCK | CODING_MODE_SAFE_ENCODING); coding.source = (const unsigned char *) text->string.multi_byte; |