LinuxSir.cn,穿越时空的Linuxsir!

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

LC_CTYPE value can not be changed?

[复制链接]
发表于 2006-1-6 22:37:03 | 显示全部楼层 |阅读模式
I am trying to get my fcitx working, I added following lines into my .bashrc file (this is not a root user):

export GTK_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
export XIM=fcitx
export XIM_PROGRAM=fcitx
export LC_CTYPE="zh_CN.UTF-8"

however, after I re-log in, the locale command still give me the following output:
LANG=
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8

Isn't that the value for LC_CTYPE should be changed to whatever value I set in .bashrc file ???? My OS is gentoo.
发表于 2006-1-6 22:48:33 | 显示全部楼层
try .bash_profile?
I think everything should be ok.
回复 支持 反对

使用道具 举报

发表于 2006-1-6 22:53:42 | 显示全部楼层
export LC_CTYPE="zh_CN.UTF-8"
-->
export LC_CTYPE=zh_CN.UTF-8
试试
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 23:06:54 | 显示全部楼层
thanks for your replies, it doesn't help in either way....

I don't understand what it is going wrong ??
回复 支持 反对

使用道具 举报

发表于 2006-1-6 23:15:20 | 显示全部楼层
If you set LC_ALL
then LC_xxx and LANG's value will not be inspected, effectively can't be set

http://linuxsir.cn/bbs/showthread.php?t=237877

unset LC_ALL
in your .bashrc
set LANG instead
回复 支持 反对

使用道具 举报

发表于 2006-1-6 23:16:11 | 显示全部楼层
你先在控制台下export LC_CTYPE=zh_CN.UTF-8
再看locale是否有变化。
或者你在哪里设置重复了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-7 00:13:06 | 显示全部楼层
to zhllg:

你是对的.以后还要加强对基础知识的学习. 在profile.env里LC_ALL被设成了en_US.utf8.现已更改过来了.
谢谢所有回贴子的同志们.
回复 支持 反对

使用道具 举报

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

本版积分规则

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