From: Kerin Millar <kerframil@gmail.com>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: LANG=en_GB.UTF-8 by default
Date: Mon, 20 Feb 2012 03:07:33 +0000 [thread overview]
Message-ID: <jhsddm$25j$1@dough.gmane.org> (raw)
In-Reply-To: <20120220001153.GA1900@linux1>
On 20/02/2012 00:11, William Hubbs wrote:
> On Sun, Feb 19, 2012 at 11:56:40PM +0800, Ben wrote:
>> On 19 February 2012 23:14, Ulrich Mueller<ulm@gentoo.org> wrote:
>>>>>>>> On Sun, 19 Feb 2012, Ben wrote:
>>>
>>>> In my opinion we should set a default environment with the following
>>>> values:
>>>
>>>> LANG=en_US.UTF-8
>>>> LC_ALL=
>>>> LC_COLLATE=C
>>>
>>>> This offers the best default options to the majority of users, and
>>>> is easy to customize for those who wish to use another locale.
>>>
>>> At least, LC_NUMERIC=C should be added to this, otherwise numbers will
>>> be formatted with commas as thousands separators.
>>>
>>> Also en_US.UTF-8 for LC_MEASUREMENT and LC_PAPER means imperial units
>>> and letter paper, which isn't optimal for users outside of the U.S.
>>>
>>> Ulrich
>>>
>>
>> I think those users (and that includes myself) should then set LANG to
>> something more appropriate to their use case.
>
> According to our localization guide, there is a safe default that forces
> UTF-8 characters but doesn't force any language. I have the following
> single line in /etc/env.d/02locale:
>
> LC_CTYPE=en_US.UTF-8
>
That looks good but perhaps it should also define LANG=POSIX, which is
similar to Ulrich's proposal. Something like:
# To configure for your region, set LANG to an appropriate locale, then
comment
# or remove LC_CTYPE. Run "locale -a" to obtain a list of available locales.
LANG=POSIX
LC_CTYPE=en_US.utf8
I know that adding LANG=POSIX doesn't do anything in this case but I
have a feeling that its presence would be instructive to new users. If a
user is asked to configure something which isn't present, it often
generates questions which might otherwise be avoided. I've changed
"en_US.UTF-8" to "en_US.utf8" there for similar reasons.
Not to mention that, if one is curious and searches for "posix locale"
via Google, the first link is for the Open Group specification :)
I reckon that this, along with some basic information in the handbook,
would be a step in the right direction.
--Kerin
next prev parent reply other threads:[~2012-02-20 3:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 11:58 [gentoo-dev] LANG=en_GB.UTF-8 by default Francesco R.(vivo)
2012-02-15 12:22 ` Mr. Aaron W. Swenson
2012-02-18 2:31 ` [gentoo-dev] " Kerin Millar
2012-02-19 1:00 ` James Cloos
2012-02-19 2:04 ` Ben
2012-02-19 11:39 ` Amadeusz Żołnowski
2012-02-19 15:14 ` Ulrich Mueller
2012-02-19 15:56 ` Ben
2012-02-19 18:44 ` Kerin Millar
2012-02-19 20:03 ` Ulrich Mueller
2012-02-20 0:11 ` William Hubbs
2012-02-20 3:07 ` Kerin Millar [this message]
2012-02-20 7:47 ` Fabian Groffen
2012-02-20 12:27 ` Kerin Millar
2012-02-19 19:14 ` Kerin Millar
2012-02-20 9:49 ` [gentoo-dev] " Chí-Thanh Christopher Nguyễn
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='jhsddm$25j$1@dough.gmane.org' \
--to=kerframil@gmail.com \
--cc=gentoo-dev@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