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 LC_CTYPE=zh_CN.UTF-8. My root account uses bash, and my account uses zsh as default sh. I guess it's the problem of my zsh. But I still don't know the solution.
On Fri, Nov 18, 2011 at 7:19 PM, i <i...@introo.me> wrote: > 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 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.) >>> >>> Thanks. >>> -- >>> My gpg pubring is available via: gpg --keyserver subkeys.pgp.net >>> <http://subkeys.pgp.net> --recv-keys 307CF736 >>> >>> More on: http://about.me/introom >>> >>> >>> >> >> -- >> To UNSUBSCRIBE, email to >> debian-user-REQUEST@lists.**debian.org<debian-user-requ...@lists.debian.org>with >> a subject of "unsubscribe". Trouble? Contact >> listmas...@lists.debian.org >> Archive: >> http://lists.debian.org/**4ec63404.5070...@gmail.com<http://lists.debian.org/4ec63404.5070...@gmail.com> >> >> > > > -- > My gpg pubring is available via: gpg --keyserver subkeys.pgp.net--recv-keys > 307CF736 > > More on: http://about.me/introom > > > -- My gpg pubring is available via: gpg --keyserver subkeys.pgp.net--recv-keys 307CF736 More on: http://about.me/introom