This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_subprocess.test_undecodable_env() failure on AIX
Type: Stage:
Components: Tests Versions: Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: David.Edelsohn, python-dev, vstinner
Priority: normal Keywords: buildbot

Created on 2013-11-18 01:16 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (4)
msg203241 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-11-18 01:16
To analyze the following issue, I would like to know which locale encoding is used on AIX with the C locale. Example:

$ LC_ALL=C python -c 'import locale; print(locale.getpreferredencoding(False))'
ANSI_X3.4-1968

http://buildbot.python.org/all/builders/PPC64%20AIX%203.x

======================================================================
FAIL: test_undecodable_env (test.test_subprocess.POSIXProcessTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/shager/cpython-buildarea/3.x.edelsohn-aix-ppc64/build/Lib/test/test_subprocess.py", line 1696, in test_undecodable_env
    self.assertEqual(stdout.decode('ascii'), ascii(value))
AssertionError: "'abc\\xff'" != "'abc\\udcff'"
- 'abc\xff'
?      ^
+ 'abc\udcff'
?      ^^^
msg203245 - (view) Author: David Edelsohn (David.Edelsohn) * Date: 2013-11-18 04:27
$ LC_ALL=C python -c 'import locale; print(locale.getpreferredencoding(False))'
ISO8859-1

It's possible that some additional locales were not installed by default with the system, e.g., UTF-8.
msg203439 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-11-19 22:47
New changeset e651036191ad by Victor Stinner in branch 'default':
Issue #19637: fix test_undecodable_env() of test_subprocess on AIX
http://hg.python.org/cpython/rev/e651036191ad
msg203605 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-11-21 10:30
test_subprocess now pass on the "PPC64 AIX 3.x" buildbot, I close the issue.
History
Date User Action Args
2022-04-11 14:57:53adminsetgithub: 63836
2013-11-21 10:30:48vstinnersetstatus: open -> closed
resolution: fixed
messages: + msg203605
2013-11-19 22:47:05python-devsetnosy: + python-dev
messages: + msg203439
2013-11-18 04:27:59David.Edelsohnsetmessages: + msg203245
2013-11-18 01:16:33vstinnercreate