On Mon, Aug 5, 2013 at 6:52 PM, Chris Stankevitz
<chrisstankev...@gmail.com> wrote:
> On Mon, Aug 5, 2013 at 11:53 AM, Mike Gilbert <flop...@gentoo.org> wrote:
>> The handbook documents setting a system-wide default locale. You
>> generally do this by setting the LANG variable in
>> /etc/conf.d/02locale.
>>
>> http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=8#doc_chap3_sect3
>
> Mike,
>
> Thank you for your help.  I attempted to follow these instructions and
> ran into three problems.  Can you please confirm the fixes I employed
> to deal with each of these issues:
>

I think the other responses in the thread have this covered, but I
will respond anyway.

> 1. The handbook suggests I should modify the file /etc/env.d/02locale,
> but that file does not exist on my system.  RESOLUTION: create the
> file
>

Correct. This file can also be created by using eselect locale.

> 2. The handbook suggests I should add this line to
> /etc/env.d/02locale: 'LANG="de_DE.UTF-8"', but I do not speak the
> language "DE".  RESOLUTION: type instead 'LANG="en_US.UTF-8"' to match
> /etc/locale.gen
>

Right, the de_DE is just an example. You should select a
language/country that matches your lingual ability. :-)

> 3. The handbook suggests that I should add this line to
> /etc/env.d/02locale: 'LC_COLLATE="C"', but I do not know if they are
> again talking about the language "DE".  RESOLUTION: I assumed
> LC_COLLATE=C refers to english and added the line without
> modification.
>

LC_COLLATE specifies how to sort text strings. Setting it to "C"
indicates that you want to sort strings based on the binary (ASCII)
value of their characters.

Leaving LC_COLLATE unset will cause strings to be sorted according to
the normal rules associated with your locale.

For example, given the following strings:

cat
Dog

With LC_COLLATE="C", they are sorted like this, since the binary value
of "D" (66) is less than the value of "c" (99).

Dog
cat

With LC_COLLATE="en_US.UTF-8", they are sorted like this, since "c"
comes before "D" in the alphabet.

cat
Dog

Reply via email to