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: Fri, 30 Jul 2010 00:13:36
Message-Id: 4C521920.6000206@gentoo.org
In Reply to: [gentoo-dev] Locale check in python_pkg_setup() by Arfrever Frehtes Taifersar Arahesis
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 On 07/29/2010 07:16 PM, Arfrever Frehtes Taifersar Arahesis wrote:
5 > + locale="$(python -c 'import os; print(os.environ.get("LC_ALL", os.environ.get("LC_CTYPE", os.environ.get("LANG", "POSIX"))))')"
6 > + if [[ "${locale}" != *.UTF-8 ]]; then
7
8 Shouldn't you be checking the output of `locale charmap` instead of the
9 actual contents of the LC_ALL/LC_CTYPE/LANG variables? You currently
10 are reporting an error if someone is using the "en_US.utf8" locale
11 (which *is* a legal UTF-8 locale, and should not be an error).
12
13 - --
14 Jonathan Callen
15 -----BEGIN PGP SIGNATURE-----
16 Version: GnuPG v2.0.16 (GNU/Linux)
17 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
18
19 iQIcBAEBCAAGBQJMUhkgAAoJELHSF2kinlg4dwYQAKkGNSIQJR+2If0c97MSTWZz
20 hj5UAUrj+hYsxdg4rjOt/J6rGdh/iG+v1OwzaGZy0GZpb3O/KKajrfbYDaarGXMp
21 RwHviKOh+jVZqnaCKF63Iz4F80BaEJpvuQBfU0zrwRVlvl5nVS9HaOuwXslFKFJr
22 ge4ygrsRkKWqenaVZbjvWnYWeFWxMHF3iGH77uWrAci04cDArJjNX6puCKiwCMEt
23 F/+aXro7DqkyZws084L1xjovfWs9HcbdkGPMsQ5TR48MqRIDRDuxKiNoRhRQoDjM
24 qSUKR8FpZtTcrXyIsPrZw85f2XAAsXXdW6aMwVcpj9rS7JxNeM8/383Z5A+i/za2
25 iyynZcBhZj1jYOWtghCvfOeKHdO+s6iBPRg/yN7WAashiS6cCa+hBwXeHT1YDw1V
26 iXSKfSKQnPcT1sqXqtZ7IkLKvXxG0PTNIrpIJya7SXCKTlZP97E6uVZcJeYYOT3Y
27 sN0FqCxJ7F7SIRndfC4Q9fxU6wxcNICoB6VF1jkpyYccO7XyjFqL9zNfd9+2Pe6u
28 hqAVZpae7GbE5NJJnkWvb7fQj0PVdhlk54dUdr9p5cinKnfV2hPW+23lSInpkgdw
29 Oa1ZMUy1G9+lEUsCN2ve/l3gfuUAWXeZx/Nuo6ieuJ/HJLFkAn9Cbbpy9C+VlkxN
30 K2S4CEu16mDy9zgrrbq+
31 =w5tr
32 -----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-dev] Re: Locale check in python_pkg_setup() Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>