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

Re: Hi, how to change the LC_CTYPE?



On Vi, 18 nov 11, 13:11:35, shiyao ma wrote:
> I am now using Debian/Sid with display manager lightdm and desktop manager
> xfce4.
> I used to edit /etc/environment and add export LC_CTYPE=zh_CN.UTF-8.
> Now It doesn't work.
> When I have logged into XFCE4, the output of locale -a is
> LC_CTYE=en_US.UTF-8
> Later, I edited /etc/default/locale, adding one line: export
> LC_CTYPE=zh_CN.UTF-8. However, the locale is still LC_CTYPE=en_US.UTF-8.
> I also did that in /etc/profile, and  failed either.
> 
> I am now curious about the way the system source *.sh in the boot up
> session.
> My question is :What's the proper way of setting LC_CTYPE?
> (Plus, if I add export LC_ALL=zh_CN.UTF-8 in /etc/default/locale, it will
> work, but this is not what I want. Further more, I think the file
> /etc/default/locale shouldn't be edited, as it is generated by the software
> and maybe overwritten.)

For X you have to export variables in ~/.xsessionrc since not all 
Display Managers source ~/.profile

Hope this helps,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

Attachment: signature.asc
Description: Digital signature


Reply to: