aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuuki Harano2020-07-20 21:35:21 +0900
committerJeff Walsh2020-11-24 12:24:40 +1100
commite7190d8bb251afd11ac91a3b3c64243a0e8a0cd0 (patch)
tree0af686fa2f438bd5ca276c88a93c985dcb8cbb12
parent6c4349601c852e16ae34815a36d7032de054e809 (diff)
downloademacs-e7190d8bb251afd11ac91a3b3c64243a0e8a0cd0.tar.gz
emacs-e7190d8bb251afd11ac91a3b3c64243a0e8a0cd0.zip
Fix non-English layout does not work
* src/pgtkterm.c (key_press_event): Use Vlocale_coding_system.
-rw-r--r--src/pgtkterm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pgtkterm.c b/src/pgtkterm.c
index 6b193bae3eb..f49bcac2943 100644
--- a/src/pgtkterm.c
+++ b/src/pgtkterm.c
@@ -5492,9 +5492,9 @@ key_press_event (GtkWidget * widget, GdkEvent * event, gpointer * user_data)
5492 { 5492 {
5493 /* Decode the input data. */ 5493 /* Decode the input data. */
5494 5494
5495 /* The input should be decoded with `coding_system' 5495 /* The input should be decoded with locale `coding_system'. */
5496 which depends on which X*LookupString function 5496 if (!NILP (Vlocale_coding_system))
5497 we used just above and the locale. */ 5497 coding_system = Vlocale_coding_system;
5498 setup_coding_system (coding_system, &coding); 5498 setup_coding_system (coding_system, &coding);
5499 coding.src_multibyte = false; 5499 coding.src_multibyte = false;
5500 coding.dst_multibyte = true; 5500 coding.dst_multibyte = true;