imsettings/Fix-can-not-input-chinese-in-en-environment.patch
2021-03-15 10:22:17 +08:00

26 lines
996 B
Diff

From d4f871be3df2b9cd089aef78245d22d5ccce677b Mon Sep 17 00:00:00 2001
From: yeqinglong <yeqinglong@uniontech.com>
Date: Fri, 12 Mar 2021 13:53:30 +0800
Subject: [PATCH] fix can't input chinese in en environment
---
data/xinput.sh.in.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/data/xinput.sh.in.in b/data/xinput.sh.in.in
index 379ca99..d918787 100755
--- a/data/xinput.sh.in.in
+++ b/data/xinput.sh.in.in
@@ -54,7 +54,7 @@ if [ -r "$USER_XINPUTRC" -a "x$IMSETTINGS_DISABLE_USER_XINPUTRC" = "xno" ]; then
elif [ -r "$SYS_XINPUTRC" ]; then
# FIXME: This hardcoded list has to be gone in the future.
# Locales that normally use input-method for native input
- _im_language_list="as bn gu hi ja kn ko mai ml mr ne or pa si ta te th ur vi zh"
+ _im_language_list="as bn gu hi ja kn ko mai ml mr ne or pa si ta te th ur vi zh en"
_sourced_xinputrc=0
for i in $_im_language_list; do
if echo $tmplang | grep -q -E "^$i"; then
--
2.27.0