diff options
| -rw-r--r-- | Lib/test/test_c_locale_coercion.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Lib/test/test_c_locale_coercion.py b/Lib/test/test_c_locale_coercion.py index f5a9fe3484..635c98face 100644 --- a/Lib/test/test_c_locale_coercion.py +++ b/Lib/test/test_c_locale_coercion.py @@ -17,7 +17,14 @@ from test.support.script_helper import ( # Set our expectation for the default encoding used in the C locale # for the filesystem encoding and the standard streams -C_LOCALE_STREAM_ENCODING = "ascii" + +# AIX uses iso8859-1 in the C locale, other *nix platforms use ASCII +if sys.platform.startswith("aix"): + C_LOCALE_STREAM_ENCODING = "iso8859-1" +else: + C_LOCALE_STREAM_ENCODING = "ascii" + +# FS encoding is UTF-8 on macOS, other *nix platforms use the locale encoding if sys.platform == "darwin": C_LOCALE_FS_ENCODING = "utf-8" else: |
