On 5/11/2011 12:02 PM, Nikos Chantziaras wrote: > On 05/11/2011 06:53 PM, Nikos Chantziaras wrote: >> On 05/11/2011 06:42 PM, Dale wrote: >>> That was quick: >>> >>> root@fireball / # grep LC_ALL /etc/env.d/* >>> root@fireball / # >>> >>> Guess that is not in env.d anywhere. :/ >> >> Then I guess you can create it on your own. See: >> >> http://www.gentoo.org/doc/en/guide-localization.xml#doc_chap3 > > Heh, according to the guide I linked to, setting LC_ALL is a bad idea > :-D So I guess the grep should have been:
The only problem with LC_ALL is that it overrides all of the other LC_* variables. When looking for locale information for a given category, the order is: LC_ALL -> LC_{COLLATE|CTYPE|MESSAGES|TIME|NUMERIC|MONETARY} -> LANG (glibc adds a bunch of other LC_* variables from a POSIX draft that never got formalized.) Setting just LANG= and setting just LC_ALL= have the same ultimate result: every localization category uses the same locale. The difference is that setting LC_ALL means you can't turn around and redefine, say, just LC_TIME to use some other locale's format. --Mike