[Share Experiences] deepin终端配置为英文
Tofloor
poster avatar
wangxinyu
deepin
2022-02-24 01:44
Author

由于办公电脑直接装了Deepin , 语言环境为中文,但是在开发过程中,命令行编译过程与中文环境有兼容性问题:如读取svn号/git版本等,读取到的为空值。

(一般命令行都不需要中文环境)

通过分析,可通过配置语言环境变量解决 。

正常情况下:

LANGUAGE=zh_CN

LANG=zh_CN.UTF-8

修改为:

LANGUAGE=en_US

LANG=en_US.UTF-8

为了方便 ,可以将此两个环境变更修改,放置到~/.bashrc中, 这样打开终端就自动切换为英文

echo "LANGUAGE=en_US"  >>  ~/.bashrc
echo "LANG=en_US.UTF-8"  >>  ~/.bashrc
Reply Favorite View the author
All Replies
vivian_me
deepin testing team
2022-02-24 01:50
#1

点个赞agree

Reply View the author
andktan
deepin
2022-02-24 02:13
#2

👍

Reply View the author
kirin2020
deepin
2022-02-24 21:12
#3

终端_001.png

中文也挺香的呀,呵呵!

Reply View the author
wangxinyu
deepin
2022-02-25 20:31
#4
kirin2020

终端_001.png

中文也挺香的呀,呵呵!

搞开的要编译环境的

Reply View the author