[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2b72558527: Use locale coding system to decode XIM preedit text
From: |
Po Lu |
Subject: |
master 2b72558527: Use locale coding system to decode XIM preedit text |
Date: |
Sat, 22 Jan 2022 03:18:49 -0500 (EST) |
branch: master
commit 2b72558527fd2f31274f665244ad84fe90a19bd5
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
src/xfns.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xfns.c b/src/xfns.c
index a1435d5351..7123198724 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2b72558527: Use locale coding system to decode XIM preedit text,
Po Lu <=