python-utils-r1.eclass: try C.UTF-8 and en_GB.UTF-8 in python_export_utf8_locale
authorMike Gilbert <floppym@gentoo.org>
Sat, 24 Sep 2016 01:01:55 +0000 (21:01 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sat, 24 Sep 2016 01:02:59 +0000 (21:02 -0400)
eclass/python-utils-r1.eclass

index bf833eb990074c910fc7a027ab11bad6b7a62285..60eedf7e2ab30ac7cb9fb678d115eaae012ac450 100644 (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