我的enviroment是不是有问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
pihou
帖子: 173
注册时间: 2005-11-12 12:28

我的enviroment是不是有问题

#1

帖子 pihou » 2006-11-02 22:40

安装的时候选的语言是en_US,结果现在的默认编码成了ANSI_X3.4-1968而不是UTF-8

我的enviroment是
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:
/usr/games"
LANGUAGE="en_US:en"
LC_ALL ="en_US.UTF-8"
LC_CTYPE=zh_CN.UTF-8
LANG=en_GB.UTF-8
GST_ID3_TAG_ENCODING=GBK

而我运行了sudo dpkg-reconfigure locales只是:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_CTYPE = "zh_CN.UTF-8",
LC_ALL = "en_US.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales...
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
Generation complete.
而没有让我设置

该怎么改成utf-8呀? 另外我仍然想桌面是en_US的
头像
sinoyster
帖子: 958
注册时间: 2005-10-16 13:24
来自: 四川成都
联系:

#2

帖子 sinoyster » 2006-11-02 23:59

locale 不对

1.编辑 /etc/belocs/locale-gen.conf
把PURGE改为yes
2.在/var/lib/locales/supported.d目录下设置你需要的locale
比如只保留 en zh local
其中en为: en_US.UTF-8 UTF-8
zh为: zh_CN.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
local为: en_US.UTF-8 UTF-8
3. 运行locale-gen
sudo locale-gen
Thank you Ubuntu Team!!!!
I still can't belive this is free...
fallening
帖子: 131
注册时间: 2006-10-30 19:54
来自: Hannover

#3

帖子 fallening » 2006-11-03 21:32

代码: 全选

1.编辑 /etc/belocs/locale-gen.conf
把PURGE改为yes
之后需要修改回来么?
回复