关闭语言切花的代码
This commit is contained in:
parent
f0b5b4687f
commit
d850be856e
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue