mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
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:
parent
3fe89dac42
commit
7ef1697be5
@ -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')
|
||||
|
@ -0,0 +1 @@
|
||||
Fix `test_utf8_mode.test_cmd_line` for AIX
|
Loading…
Reference in New Issue
Block a user