Re: Hi, how to change the LC_CTYPE?

2011-11-22 Thread Tom H
On Sun, Nov 20, 2011 at 8:57 PM, Bob Proulx b...@proulx.com wrote: Tom H wrote: Bob Proulx wrote: Tom H wrote: With bash, you'd edit /etc/profile or ~/.profile; with zsh, no idea. That won't work for logins from an xdm such as gdm, kdm or lightdm. It works for gdm, at least up to

Re: Hi, how to change the LC_CTYPE?

2011-11-20 Thread Andrei Popescu
On Sb, 19 nov 11, 14:46:19, Bob Proulx wrote: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=636108 Thank you for that bug reference. I have to agree that ~/.profile is for lowest-common denominator shells (POSIX shells) and not usually for any other purpose. The problem of having

Re: Hi, how to change the LC_CTYPE?

2011-11-20 Thread Tom H
On Fri, Nov 18, 2011 at 7:53 PM, Bob Proulx b...@proulx.com wrote: Tom H wrote: With bash, you'd edit /etc/profile or ~/.profile; with zsh, no idea. That won't work for logins from an xdm such as gdm, kdm or lightdm. It works for gdm, at least up to v2.30. -- To UNSUBSCRIBE, email to

Re: Hi, how to change the LC_CTYPE?

2011-11-20 Thread Bob Proulx
Andrei Popescu wrote: Bob Proulx wrote: for any other purpose. The problem of having one single location for setting shell variables has been a problem for a lot of years. ...and there doesn't seem to be any interest to fix it :( Unfortunately no. And I think (due to the FAQ entry)

Re: Hi, how to change the LC_CTYPE?

2011-11-20 Thread Bob Proulx
Tom H wrote: Bob Proulx wrote: Tom H wrote: With bash, you'd edit /etc/profile or ~/.profile; with zsh, no idea. That won't work for logins from an xdm such as gdm, kdm or lightdm. It works for gdm, at least up to v2.30. I just tested it on Squeeze with gdm 2.20.11-4 and it does NOT

Re: Hi, how to change the LC_CTYPE?

2011-11-19 Thread Andrei Popescu
On Vi, 18 nov 11, 17:53:50, Bob Proulx wrote: Tom H wrote: With bash, you'd edit /etc/profile or ~/.profile; with zsh, no idea. That won't work for logins from an xdm such as gdm, kdm or lightdm. Those are not in the execution path. Shells launched are not login shells and nowhere in

Re: Hi, how to change the LC_CTYPE?

2011-11-19 Thread Andrei Popescu
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

Re: Hi, how to change the LC_CTYPE?

2011-11-19 Thread Bob Proulx
Andrei Popescu wrote: Bob Proulx wrote: There are customizations that can be done to make shells login shells or to have the entire xsession run from a login shell. (I think making .xsession run as a login shell is the best solution. I have posted about it several times before.) But by

Re: Hi, how to change the LC_CTYPE?

2011-11-18 Thread Marlon Nunes
do a: dpkg-reconfigure locales choose your default locale and that's it. reboot. Em 18-11-2011 02:11, shiyao ma escreveu: 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.

Re: Hi, how to change the LC_CTYPE?

2011-11-18 Thread i
dpkg-reconfigure locales is not meticulous enough. That's the reason why I want to set the default locale by myself. 2011/11/18 Marlon Nunes mcnu...@gmail.com do a: dpkg-reconfigure locales choose your default locale and that's it. reboot. Em 18-11-2011 02:11, shiyao ma escreveu: I am

Re: Hi, how to change the LC_CTYPE?

2011-11-18 Thread i
According to my experience, editing /etc/default/locale should work. I did restart my laptop and found that the line export LC_CTYPE=zh_CN.UTF-8 didn't work. However, when I switched to root, and run locale -a, the output became normal. To confirm that, I run set | grep LC_CTYPE. It is true that

Re: Hi, how to change the LC_CTYPE?

2011-11-18 Thread Curt
On 2011-11-18, Marlon Nunes mcnu...@gmail.com wrote: do a: dpkg-reconfigure locales choose your default locale and that's it. reboot. Why reboot? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Re: Hi, how to change the LC_CTYPE?

2011-11-18 Thread shiyao ma
Once again, I added export LC_CTYPE=zh_CN.UTF-8 in my .zshrc However, I do not think it will affect the locale of my GUI software... So guys, what's your solution? On Sat, Nov 19, 2011 at 12:34 AM, Curt cu...@free.fr wrote: On 2011-11-18, Marlon Nunes mcnu...@gmail.com wrote: do a:

Re: Hi, how to change the LC_CTYPE?

2011-11-18 Thread Tom H
On Fri, Nov 18, 2011 at 12:29 PM, shiyao ma i...@introo.me wrote: Once again, I added export LC_CTYPE=zh_CN.UTF-8 in my .zshrc However, I do not think it will affect the locale of my GUI software... With bash, you'd edit /etc/profile or ~/.profile; with zsh, no idea. -- To UNSUBSCRIBE,

Re: Hi, how to change the LC_CTYPE?

2011-11-18 Thread Bob Proulx
shiyao ma wrote: Once again, I added export LC_CTYPE=zh_CN.UTF-8 in my .zshrc However, I do not think it will affect the locale of my GUI software... Is it an acceptable solution to set LANG=zh_CN.UTF-8 only? If not then I will suggest a more complicated but robust solution. It appears that

Hi, how to change the LC_CTYPE?

2011-11-17 Thread shiyao ma
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

Re: Hi, how to change the LC_CTYPE?

2011-11-17 Thread Bob Proulx
shiyao ma wrote: I used to edit /etc/environment and add export LC_CTYPE=zh_CN.UTF-8. Now It doesn't work. Debian keeps moving the location to set locales around. It is no longer in /etc/environment. It is now either /etc/default/locale for the entire system or your own personal files for