Skip to content

Commit

Permalink
bpo-34347: Fix test_utf8_mode.test_cmd_line for AIX (GH-8923)
Browse files Browse the repository at this point in the history
AIX uses ISO-8859-1 encoding for the C locale.
  • Loading branch information
aixtools authored and vstinner committed Aug 27, 2018
1 parent 3fe89da commit 7ef1697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_utf8_mode.py
Expand Up @@ -219,6 +219,8 @@ def check(utf8_opt, expected, **kw):
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')
Expand Down
@@ -0,0 +1 @@
Fix `test_utf8_mode.test_cmd_line` for AIX

0 comments on commit 7ef1697

Please sign in to comment.