diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-04-23 22:55:39 +0000 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-04-23 22:55:39 +0000 |
commit | ce2d24d54987a73fd584ae299d3349f534943c65 (patch) | |
tree | 24366e82ffd0cb5266d325034205765a5321d544 /Python/getargs.c | |
parent | 13bb71c38f1830f3fabd45b51bb3747aa841b1cb (diff) | |
download | cpython-git-ce2d24d54987a73fd584ae299d3349f534943c65.tar.gz |
Fix test_undecodable_env of test_subproces for non-ASCII directory
This test was introduced by r80421 (issue #8391).
The fix: copy the environment variables instead of starting Python in an empty
environement. In an empty environment, the locale is C and Python uses ASCII
for the default file system encoding. The non-ASCII directory will be encoded
using surrogates, but Python3 is unable to load a module or package with a
filename using surrogates.
See issue #8242 for more information about running Python3 with a non-ascii
directory in an empty environement.
Diffstat (limited to 'Python/getargs.c')
0 files changed, 0 insertions, 0 deletions