bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923)

AIX uses ISO-8859-1 encoding for the C locale.
This commit is contained in:
Michael Felt 2018-08-27 15:40:17 +02:00 committed by Victor Stinner
parent 3fe89dac42
commit 7ef1697be5
2 changed files with 3 additions and 0 deletions

View File

@ -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')

View File

@ -0,0 +1 @@
Fix `test_utf8_mode.test_cmd_line` for AIX