[issue28114] parse_envlist(): os.execve(), os.spawnve(), etc. crash in Python 3.6.0 when env contains byte strings

Eryk Sun report at bugs.python.org
Wed Sep 14 10:19:27 EDT 2016


Eryk Sun added the comment:

Thanks for the spawn test framework, Victor. I've added a use_bytes argument to encode the args and env using os.fsencode. It's encoding args as well because parse_arglist calls fsconvert_strdup, which was assuming Unicode strings on Windows instead of first calling PyUnicode_FSDecoder. test_spawnve_bytes passes for me on Linux and Windows.

----------
Added file: http://bugs.python.org/file44661/issue_28114_02.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28114>
_______________________________________


More information about the Python-bugs-list mailing list