Gentoo Archives: gentoo-dev

From: "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] UTF-8 locale by default
Date: Thu, 19 Jul 2012 22:24:53
Message-Id: 500888FA.6060307@gentoo.org
In Reply to: [gentoo-dev] UTF-8 locale by default by Sascha Cunz
1 Sascha Cunz schrieb:
2 > Is there a reason for not using at least en_US.UTF-8 as a "sane" default
3 > value?
4
5 It has been discussed some time ago already. Setting LANG="en_US.UTF-8"
6 would mess with collation rules, measurement&paper units etc. which has
7 the potential to make users outside USA unhappy.
8
9 It might make sense to set LC_CTYPE="en_US.UTF8" but even so,
10 transliteration may give you unexpected results.
11
12 To illustrate this, try running
13
14 echo äå | LC_CTYPE=en_US.UTF-8 iconv -t ASCII//TRANSLIT -f UTF-8
15 echo äå | LC_CTYPE=da_DK.UTF-8 iconv -t ASCII//TRANSLIT -f UTF-8
16 echo äå | LC_CTYPE=de_DE.UTF-8 iconv -t ASCII//TRANSLIT -f UTF-8
17
18 and compare the output.
19 For the previous discussion, see this thread:
20 http://archives.gentoo.org/gentoo-dev/msg_2ffb7ea72e6209439600c371f6fc071d.xml
21
22
23 Best regards,
24 Chí-Thanh Christopher Nguyễn