Mark Knecht writes:

> On Sun, Jul 15, 2012 at 8:09 AM, Nikos Chantziaras <rea...@gmail.com>
> wrote:

> > Do not set anything other than LANG and LC_COLLATE.  Then only set
> > vars that differ from LANG.  Your /etc/env.d/02locale should look
> > like this:
> >
> >   LANG="en_US.UTF-8"
> >   LC_COLLATE="C"
> >   LC_CTYPE=zh_CN.UTF-8
[...]
> Just double checking here. Is the file /etc/locale.gen now totally
> depreciated or is it still required? The install guide still has it in
> chapter 8 where the file /etc/locale.gen ends up looking pretty much
> identical to the 02locale file.
> 
> Or maybe they serve different purposes somehow?

/etc/locale.gen defines which locales are supported on your system.

/etc/env.d/02locale defines which of these locale you are actually using
by setting LANG and LC_* environment variables. Files in /etc/env.d/ end
up in /etc/profile.env (by running the env-update command), which is
evaluated from /etc/profile and as such by every shell. If you want
different settings for your user, override that stuff in your
~/.bash_profile.

        Wonko

Reply via email to