LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 860|回复: 6

Question about locales setting

[复制链接]
发表于 2006-5-7 14:02:17 | 显示全部楼层 |阅读模式
Dear All,
     For convenience, I set default locale to en-US when installing package "locales". Now I want to change the default locale setting to zh-CN, so I execute "dpkg-reconfigure locales" and set the default locale setting to zh-CN-UTF-8. However, when I use command "locale" after logging off and re-logging in, the default locale setting is still en-US and I can't execute xcin now under X-window. Is there anyone who had met the similar condition before ?
发表于 2006-5-7 14:18:29 | 显示全部楼层
如果实用GDM登录X的话,在登录界面设置语言就好了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-7 18:27:37 | 显示全部楼层
那么如果不用xwindow只在控制台里面呢?应该怎么办?是我设置的方法不对还是怎么回事?
回复 支持 反对

使用道具 举报

发表于 2006-5-7 19:15:48 | 显示全部楼层
一定是你在什么文件设置了。自己找找吧
回复 支持 反对

使用道具 举报

发表于 2006-5-7 20:08:13 | 显示全部楼层
如果实在没辙可以在~/.bashrc中用export指令强制指定locale凑合一下。
回复 支持 反对

使用道具 举报

发表于 2006-5-7 20:57:39 | 显示全部楼层
用startx的吧。底下是我的.xsession
xep007@ubuntu:~$ more .xsession
export LANG=zh_CN.UTF-8
export LC_ALL=zh_CN.UTF-8
export LC_CTYPE=zh_CN.UTF-8
#export G_FILENAME_ENCODING=@GBK
export XMODIFIERS=@im=fcitx
/usr/bin/fcitx &
exec gnome-session
killall fcitx
回复 支持 反对

使用道具 举报

发表于 2006-5-8 12:29:50 | 显示全部楼层
看看你的 /etc/environment ?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表