From: Kerin Millar <kerframil@fastmail.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] export LC_CTYPE=en_US.UTF-8
Date: Tue, 06 Aug 2013 14:04:00 +0100 [thread overview]
Message-ID: <5200F440.7040002@fastmail.co.uk> (raw)
In-Reply-To: <CAPi0psuhSV+aoMbRPzVyo7vHwkG8Xe+5ucq6RKQcC=EGtEU0=w@mail.gmail.com>
On 05/08/2013 23:52, Chris Stankevitz wrote:
> On Mon, Aug 5, 2013 at 11:53 AM, Mike Gilbert <floppym@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:
>
> 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
Run "eselect locale", first with the "list" parameter and then the "set"
parameter as appropriate. It's easier.
>
> 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
Legitimate locales are those installed with glibc. These can be shown
with either "eselect locale list" or "locale -a".
>
> 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.
C refers to the POSIX locale [1].
Defining LC_COLLATE is a workaround for behaviour deeemed surprising to
those otherwise unaware of the impact of collations. For example, files
beginning with a dot might no longer appear at the top of a directory
listing and ranges in regular expressions may be affected, depending on
the extent to which a given program abides by the locale. Poorly written
shell scripts that capture from ls (assuming a given order) might also
be affected.
If undefined, the value of LC_COLLATE is inherited from LANG. I'm not
sure that overriding it is particularly useful nowadays but it doesn't hurt.
--Kerin
[1]
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html#tag_07_02
next prev parent reply other threads:[~2013-08-06 13:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-05 18:25 [gentoo-user] export LC_CTYPE=en_US.UTF-8 Chris Stankevitz
2013-08-05 18:53 ` Mike Gilbert
2013-08-05 18:57 ` Bruce Hill
2013-08-05 21:17 ` Mike Gilbert
2013-08-05 22:52 ` Chris Stankevitz
2013-08-05 23:25 ` [gentoo-user] " Kai Krakow
2013-08-06 13:04 ` Kerin Millar [this message]
2013-08-06 13:24 ` [gentoo-user] " Bruce Hill
2013-08-06 13:40 ` Kerin Millar
2013-08-06 14:26 ` Bruce Hill
2013-08-06 14:53 ` Kerin Millar
2013-08-06 15:51 ` Chris Stankevitz
2013-08-06 22:42 ` Stroller
2013-08-07 12:41 ` Kerin Millar
2013-08-07 16:40 ` Stroller
2013-08-07 22:27 ` Kerin Millar
2013-08-06 15:13 ` Mike Gilbert
2013-08-06 18:23 ` Chris Stankevitz
2013-08-07 0:58 ` Mike Gilbert
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=5200F440.7040002@fastmail.co.uk \
--to=kerframil@fastmail.co.uk \
--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