]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #13441: Enable the workaround for Solaris locale bug
authorVictor Stinner <vstinner@wyplay.com>
Fri, 9 Dec 2011 10:29:44 +0000 (11:29 +0100)
committerVictor Stinner <vstinner@wyplay.com>
Fri, 9 Dec 2011 10:29:44 +0000 (11:29 +0100)
Skip locales triggering the mbstowcs() bug. I collected the locale list thanks
my previous commit:

 * hu_HU (ISO8859-2): character U+30000020
 * de_AT (ISO8859-1): character U+30000076
 * cs_CZ (ISO8859-2): character U+30000020
 * sk_SK (ISO8859-2): character U+30000020
 * pl_PL (ISO8859-2): character U+30000020
 * fr_CA (ISO8859-1): character U+30000020

Lib/test/test__locale.py

index 39b42e2c34b2b4912566e6c7b88ef684d7aa1c22..f7f1abdab2088b930a1914f5af736e14e88ead8a 100644 (file)
@@ -48,7 +48,7 @@ if sys.platform == 'sunos5':
                       % (loc, encoding, type(err), err))
             else:
                 locales.append(loc)
-        #candidate_locales = locales
+        candidate_locales = locales
     finally:
         locale.setlocale(locale.LC_ALL, old_locale)