emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5b90b05e42: Always decode GTK input method text as utf-8-unix


From: Po Lu
Subject: master 5b90b05e42: Always decode GTK input method text as utf-8-unix
Date: Sat, 19 Feb 2022 00:27:40 -0500 (EST)

branch: master
commit 5b90b05e428c26e91b1409356a41d2c1dd654b44
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Always decode GTK input method text as utf-8-unix
    
    * src/gtkutil.c (xg_im_context_commit): Use `utf-8-unix' as
    coding system for text.
---
 src/gtkutil.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gtkutil.c b/src/gtkutil.c
index bed983c77e..27aa28b890 100644
--- 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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]