summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_utf8_mode.py
diff options
context:
space:
mode:
authorMichael Felt <aixtools@users.noreply.github.com>2018-08-27 13:40:17 (GMT)
committerVictor Stinner <vstinner@redhat.com>2018-08-27 13:40:17 (GMT)
commit7ef1697be54a74314d5214d9ba0580d4e620694c (patch)
tree708a0628f75824a0cfcc3085863a4d4ea7ed14c2 /Lib/test/test_utf8_mode.py
parent3fe89dac42809a7741d50ebf595be98833b79b97 (diff)
downloadcpython-7ef1697be54a74314d5214d9ba0580d4e620694c.zip
cpython-7ef1697be54a74314d5214d9ba0580d4e620694c.tar.gz
cpython-7ef1697be54a74314d5214d9ba0580d4e620694c.tar.bz2
bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923)
AIX uses ISO-8859-1 encoding for the C locale.
Diffstat (limited to 'Lib/test/test_utf8_mode.py')
-rw-r--r--Lib/test/test_utf8_mode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py
index 26e2e13..3e918fd 100644
--- a/Lib/test/test_utf8_mode.py
+++ b/Lib/test/test_utf8_mode.py
@@ -219,6 +219,8 @@ class UTF8ModeTests(unittest.TestCase):
check('utf8', [arg_utf8])
if sys.platform == 'darwin' or support.is_android:
c_arg = arg_utf8
+ elif sys.platform.startswith("aix"):
+ c_arg = arg.decode('iso-8859-1')
else:
c_arg = arg_ascii
check('utf8=0', [c_arg], LC_ALL='C')