[issue34403] test_utf8_mode.test_cmd_line() fails on HP-UX due to false assumptions
Michael Felt
report at bugs.python.org
Sat Aug 25 10:33:51 EDT 2018
Michael Felt <aixtools at felt.demon.nl> added the comment:
It might be as simple as what I saw for AIX:
diff --git a/Lib/test/test_utf8_mode.py b/Lib/test/test_utf8_mode.py
index 26e2e13ec5..3e918fd54c 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')
so, adding below might be all that is needed:
+ elif sys.platform == "hpux":
+ c_arg = arg.decode('roman8')
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34403>
_______________________________________
More information about the Python-bugs-list
mailing list