From 343975da5f9394314a92d69f43053ef12b4a2694 Mon Sep 17 00:00:00 2001 From: lsy Date: Sat, 27 Jul 2024 15:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0,=E6=8D=A2=E8=AF=AD=E8=A8=80?= =?UTF-8?q?=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Menus/Other.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Menus/Other.sh b/Menus/Other.sh index a6487e0..6af6459 100644 --- a/Menus/Other.sh +++ b/Menus/Other.sh @@ -32,6 +32,9 @@ case "$pick" in exit fi sudo sed -i '/^#/! s/^/# /' /etc/locale.gen + if ! grep LC_ALL /etc/default/locale &> /dev/null; then + echo "LC_ALL=en_US.UTF-8" >> /etc/default/locale + fi case $lang in '1') sudo sed -i 's/.*zh_CN.UTF-8.*/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen