From d850be856e2be01046bd17b5d21481e2b36e6a55 Mon Sep 17 00:00:00 2001 From: wangsong Date: Mon, 20 Dec 2021 10:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=AF=AD=E8=A8=80=E5=88=87?= =?UTF-8?q?=E8=8A=B1=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/kylin-system-updater | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/backend/kylin-system-updater b/backend/kylin-system-updater index 139fde8..d083fdd 100755 --- a/backend/kylin-system-updater +++ b/backend/kylin-system-updater @@ -70,10 +70,11 @@ if __name__ == "__main__": else: logging.basicConfig(format=FORMAT,level=logging.DEBUG,filename = logfile(),filemode = 'a') - if sys.getfilesystemencoding() == "ascii" and not "LANG" in os.environ: - logging.info('start setting environ["LANG"] ...') - os.environ["LANG"] = "C.UTF-8" - os.execv(sys.argv[0], sys.argv) + #目前 多用户的语言切换还未做好 不启用 + # if sys.getfilesystemencoding() == "ascii" and not "LANG" in os.environ: + # logging.info('start setting environ["LANG"] ...') + # os.environ["LANG"] = "C.UTF-8" + # os.execv(sys.argv[0], sys.argv) # if not "LANGUAGE" in os.environ: # os.environ["LANGUAGE"] = "zh_CN.UTF-8"