emacs-diffs
[Top][All Lists]
Advanced

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

feature/pgtk e7190d8 075/100: Fix non-English layout does not work


From: Yuuki Harano
Subject: feature/pgtk e7190d8 075/100: Fix non-English layout does not work
Date: Tue, 24 Nov 2020 08:02:41 -0500 (EST)

branch: feature/pgtk
commit e7190d8bb251afd11ac91a3b3c64243a0e8a0cd0
Author: Yuuki Harano <masm+github@masm11.me>
Commit: Jeff Walsh <jeff.walsh@drtusers-MacBook-Pro.local>

    Fix non-English layout does not work
    
    * src/pgtkterm.c (key_press_event): Use Vlocale_coding_system.
---
 src/pgtkterm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 6b193ba..f49bcac 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -5492,9 +5492,9 @@ key_press_event (GtkWidget * widget, GdkEvent * event, 
gpointer * user_data)
          {
            /* Decode the input data.  */
 
-           /* The input should be decoded with `coding_system'
-              which depends on which X*LookupString function
-              we used just above and the locale.  */
+           /* The input should be decoded with locale `coding_system'. */
+           if (!NILP (Vlocale_coding_system))
+             coding_system = Vlocale_coding_system;
            setup_coding_system (coding_system, &coding);
            coding.src_multibyte = false;
            coding.dst_multibyte = true;



reply via email to

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