Gentoo Archives: gentoo-dev

From: Jonathan Callen <abcd@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Locale check in python_pkg_setup()
Date: Sat, 31 Jul 2010 23:30:26
Message-Id: 4C54B1FB.6040300@gentoo.org
In Reply to: Re: [gentoo-dev] Locale check in python_pkg_setup() by James Cloos
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 07/31/2010 05:39 PM, James Cloos wrote:
5 >>>>>> "PH" == Paweł Hajdan, <phajdan.jr@g.o> writes:
6 >
7 > PH> Another thing we can consider is making UTF8 the default setup in
8 > PH> Gentoo. I think most people (including me) don't care whether it's
9 > PH> C or UTF8 as long as it works.
10 >
11 > Forcing utf-8 will only be reasonable when there is a C.UTF-8 and/or
12 > a POSIX.UTF-8 locale.
13 >
14 > That should be done upstream in glibc, but were they to refuse then
15 > Gentoo should add it to the glibc ebuild.
16 >
17 > The language_country locales are just wrong for root. They are often
18 > broken (locales like en_US force case-insensitive colation, meaning that
19 > a command such as 'rm [a-z]*' will unlink(2) 'Makefile' and similar files
20 > which one would not expect to match) and cause bugs.
21 >
22 > In fact, glibc's insistance that C and POSIX are ascii rather than raw
23 > unspecified eight bit is itself a bug.
24 >
25 > Utf8 is nice, but forcing the lang_country locales on root is not.
26 >
27 > -JimC
28
29 You can create a POSIX.UTF-8 locale right now, using the same
30 /etc/locale.gen mechanism that is used for generating other locales
31 (localedef will output a few warnings, but the generated locale works
32 just fine from what I can see). If you want a C.UTF-8 locale, then you
33 just need to symlink /usr/share/i18n/locales/C to POSIX (or call
34 localedef directly as "localedef --add-to-archive -i POSIX -f UTF-8
35 C.UTF-8").
36
37 If there are any issues with those locales besides the warnings that
38 localedef outputs, I haven't seen them yet.
39
40 - --
41 Jonathan Callen
42 -----BEGIN PGP SIGNATURE-----
43 Version: GnuPG v2.0.16 (GNU/Linux)
44 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
45
46 iQIcBAEBCAAGBQJMVLH7AAoJELHSF2kinlg4+VYQAIB/Qc3Oq6lmK6tgiXADjk1Y
47 ICMCTbxyuCRNkfllwVqqIKEMUE/UmkqIjkY2/1m2uHp3kIm8tErSa1AohdSoJncc
48 7LIH17daM7T9XylA7DoqX7et3E3mtl8SerGHFMQ7ae0qYMUkbnNeyeUq4mVhH35G
49 IazjLFCIn0KlLmsim+8ILh8OQ4NWGK1JQlqXDluxHb3BVK37XDLWmvz5gG1+CTmS
50 KrmL3ek+BujiHOfAuvc86jFi9rWMP/yPh8OMIOsG41e/4hdNnhhhwiF0MHRs6bpO
51 Ql3FLsQjS5J7o6MC5690r/Ov/qHj/PAVITXft5cEQhq/gK17sg5TM5zs1JZxNMpH
52 T5z8LuSJenB6hF/+Gk0aew0XKig52539KZRnYShyl9z0QlLUlmwj0L3t8cFnm1in
53 2ttaeVttc4P2gwaF5Uf4ljEPFJ5w3lVIsXtRJklcPOjDUlCwnpYU0y5GS7RtAXJG
54 l/4Ax2/yW8P070dg7AoYh1WVTY1ChsyRNTECFYfge8ra5OnXT9HJPVBm7FFTof+L
55 IYXJ8zOGnDm32xsiov0LsrYC5KiD+FixkqTiPUHnbZm9KmI/HCyvnODm3cD+k8ts
56 Ht4JXxdVPEjv37bpDgdSbrI2vFb3sfpdH/wY1LMoAU00p9f/xwM2d9R1i+Q08CBV
57 74aYdVDpAQi5Kqevehw8
58 =7bB7
59 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Re: Locale check in python_pkg_setup() James Cloos <cloos@×××××××.com>