python-utils-r1.eclass: try C.UTF-8 and en_GB.UTF-8 in python_export_utf8_locale

This commit is contained in:
Mike Gilbert
2016-09-23 21:02:59 -04:00
parent f66938e909
commit 7db89b8b90
+1 -1
View File
@@ -1232,7 +1232,7 @@ python_export_utf8_locale() {
if [[ $(locale charmap) != UTF-8 ]]; then
# Try English first, then everything else.
local lang locales="en_US.UTF-8 $(locale -a)"
local lang locales="C.UTF-8 en_US.UTF-8 en_GB.UTF-8 $(locale -a)"
for lang in ${locales}; do
if [[ $(LC_ALL=${lang} locale charmap 2>/dev/null) == UTF-8 ]]; then