8000 bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923) · python/cpython@7ef1697 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ef1697

Browse files
aixtoolsvstinner
authored andcommitted
bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923)
AIX uses ISO-8859-1 encoding for the C locale.
1 parent 3fe89da commit 7ef1697

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/test/test_utf8_mode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ def check(utf8_opt, expected, **kw):
219219
check('utf8', [arg_utf8])
220220
if sys.platform == 'darwin' or support.is_android:
221221
c_arg = arg_utf8
222+
elif sys.platform.startswith("aix"):
223+
c_arg = arg.decode('iso-8859-1')
222224
else:
223225
c_arg = arg_ascii
224226
check('utf8=0', [c_arg], LC_ALL='C')
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix `test_utf8_mode.test_cmd_line` for AIX

0 commit comments

Comments
 (0)
0