From: YoYo Siska <yoyo@gl.ksp.sk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] /etc/locale vs /etc/env.d/02locale?
Date: Thu, 16 Jun 2011 18:56:24 +0200 [thread overview]
Message-ID: <20110616165624.GA16859@ksp.sk> (raw)
In-Reply-To: <BANLkTinPXJUwj_94fecSWO6A+nJOJX0JvQ@mail.gmail.com>
On Thu, Jun 16, 2011 at 09:23:16AM -0700, Mark Knecht wrote:
> On Thu, Jun 16, 2011 at 9:00 AM, Paul Hartman
> <paul.hartman+gentoo@gmail.com> wrote:
> > On Thu, Jun 16, 2011 at 10:45 AM, Mark Knecht <markknecht@gmail.com> wrote:
> >> Is there a simple explanation concerning the difference between the
> >> two locales I have seen on Gentoo machines?
> >>
> >> 1) /etc/locale, as specified in the installation documents
> >>
> >> 2) /etc/env.d/02locale as has been discussed on the list recently
> >
> > I'm not near a Gentoo machine right now, but off the top of my head IIRC:
> >
> > /etc/locale.gen contains a list of locales to be compiled when glibc
> > is emerged. These will be available to be used.
> >
> > /etc/env.d/02locale specifies which of those locales you actually want
> > to use for the system-wide default (the LC variables)
>
> Thanks for the response Paul.
>
> Does that mean that the /etc/locale.gen is used only by glibc and not
> really by the system? If so, what is glibc doing with these beyond
> letting me system run programs?
>
> If 02locale specifies what the system is using, then should it be
> 02locale that's in the install documents vs off in an optional Gentoo
> Localization guide?
>
> Note that the /etc/locale.gen stuff is marked optional in the guide so
> presumably it isn't actually needed. All I've determined about it is
> that it reduces the amount of time emerge spends buildingglibc/gcc.
locale.gen is in the install docs, because it allows you to choose which
locales should be built, ie after emerging libc, which locales you can
choose from... if you don't modify it, you get a lot of usual locales
built...
/etc/env.d/02locale is used to actually choose which one of the built
ones will be used as the "default" locale for (almost) everything that
runs... I gues it might deserve a mention in the install guide...
though it actullly isn't any special file... the actuall locale is set
by setting an enviroment variable (LANG or the specific LC_...), you
could set it in your .bashrc / .bash_profile only for your user, or
anywhere where it would apply to most programs, ie /etc/profile ...
Gentoo has the mechanism, that anything that gets put into /etc/env.d is
then (through env-update, which you have certainly run from time to time
;) merged together to /etc/profile.env, which is in turned sourced by
/etc/profile (and posibly other things) so that it is just logical to
put it there... but the actual name of the file doesn't really matter ;)
yoyo
next prev parent reply other threads:[~2011-06-16 17:15 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-16 15:45 [gentoo-user] /etc/locale vs /etc/env.d/02locale? Mark Knecht
2011-06-16 16:22 ` [gentoo-user] " Nikos Chantziaras
2011-06-16 16:45 ` Mark Knecht
2011-06-16 16:54 ` Nikos Chantziaras
[not found] ` <BANLkTikP=J_NeFs-LhYb3RPANhDr74+icg@mail.gmail.com>
2011-06-16 16:23 ` [gentoo-user] " Mark Knecht
2011-06-16 16:47 ` [gentoo-user] " Nikos Chantziaras
2011-06-16 16:56 ` YoYo Siska [this message]
[not found] ` <BANLkTimqq_f+69OMmDeZGwvBvX349xUCtg@mail.gmail.com>
2011-06-18 0:50 ` walt
2011-06-18 1:35 ` Nikos Chantziaras
2011-06-18 1:46 ` Peter Humphrey
2011-06-18 21:03 ` walt
2011-06-19 20:46 ` Walter Dnes
2011-06-19 21:47 ` Peter Humphrey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110616165624.GA16859@ksp.sk \
--to=yoyo@gl.ksp.sk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox