projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7829f1b
)
Always decode GTK input method text as utf-8-unix
author
Po Lu
<luangruo@yahoo.com>
Sat, 19 Feb 2022 05:27:03 +0000
(13:27 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Sat, 19 Feb 2022 05:27:03 +0000
(13:27 +0800)
* src/gtkutil.c (xg_im_context_commit): Use `utf-8-unix' as
coding system for text.
src/gtkutil.c
patch
|
blob
|
history
diff --git
a/src/gtkutil.c
b/src/gtkutil.c
index bed983c77e3523f4fd2eb3810001c3db9f1846c3..27aa28b89026b4928920a6269743dae10a17c723 100644
(file)
--- a/
src/gtkutil.c
+++ b/
src/gtkutil.c
@@
-6099,6
+6099,10
@@
xg_im_context_commit (GtkIMContext *imc, gchar *str,
EVENT_INIT (ie);
ie.kind = MULTIBYTE_CHAR_KEYSTROKE_EVENT;
ie.arg = build_unibyte_string (str);
+
+ Fput_text_property (make_fixnum (0), make_fixnum (strlen (str)),
+ Qcoding, Qutf_8_unix, ie.arg);
+
XSETFRAME (ie.frame_or_window, f);
ie.modifiers = 0;
ie.timestamp = 0;