配置locale语言环境

1. 对debian系统:

运行命令

apt-get install locales

然后用

dpkg-reconfigure locales

选择语言 

2.对ubuntu系统:

添加新语言到文件 “/var/lib/locales/supported.d/local” , 如

zh_CN.UTF-8  UTF-8

en_US.UTF-8 UTF-8

zh_CN.GBK GBK

zh_CN.GB2312 GB2312

然后执行命令

-gen

3. 设置语言环境:

export LC_ALL=zh_CN.GBK

export LANG=zh_CN.GBK

这些命令可以写入文件.bashrc (没有则创建) 以自动执行。

Related posts



发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

Comment

You may use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>