[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian的gnome用root登录老是英文系统



wt 写道:
但是,为什么export修改LANG为zh_CN.utf-8之后LANG还是会恢复为C呢?

On 6/26/08, *Taishan* <taishan1982@gmail.com <mailto:taishan1982@gmail.com>> wrote:

    我用普通用户登录的时候,GDM_LANG和LANG环境变量都是zh_CN.UTF-8。
    而用root登录的时候,GDM_LANG是zh_CN.UTF-8,而LANG是C。应该就是
    LANG的原
    因了。

    在 2008-06-26四的 12:05 +0800,li xin写道:
    > 我先export LC_ALL=zh.CN.UTF-8都不行,登录后还是c,怎么让root登录
    后系统是中文的,或者能用scim等。。。。。


    --
    To UNSUBSCRIBE, email to
    debian-chinese-gb-REQUEST@lists.debian.org
    <mailto:debian-chinese-gb-REQUEST@lists.debian.org>
    with a subject of "unsubscribe". Trouble? Contact
    listmaster@lists.debian.org <mailto:listmaster@lists.debian.org>



原来我吃过几次苦头,你的export是不是放到了/etc/profile下面?那下面的一些 文件是在bash登陆的时候才运行的。系统的似乎有个 /etc/environment什么的, 现在不是linux,懒得查了。
而且一般是用户配置覆盖系统配置……
我以前写过一个测试,http://shell909090.spaces.live.com/blog/cns! 7AD2FCE74833C21B! 1079.entry,还有http: //shell909090.spaces.live.com/blog/cns! 7AD2FCE74833C21B!1080.entry,你 可以看看。


Reply to: