]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix non-English layout does not work
authorYuuki Harano <masm+github@masm11.me>
Mon, 20 Jul 2020 12:35:21 +0000 (21:35 +0900)
committerJeff Walsh <jeff.walsh@drtusers-MacBook-Pro.local>
Tue, 24 Nov 2020 01:24:40 +0000 (12:24 +1100)
* src/pgtkterm.c (key_press_event): Use Vlocale_coding_system.

src/pgtkterm.c

index 6b193bae3eb2b81360fa0445cef96a28ed1d6d82..f49bcac29431ac96ed18b54713d6d864ac44b72f 100644 (file)
@@ -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;