STINNER Victor <victor.stin...@haypocalc.com> added the comment: pitou> Why wouldn't you give byte variables in env too?
Ok, attached patch canonicalize env keys and values to bytes. If a variable is defined twice (str name, bytes name), a ValueError is raised. The patch depends on #8513: it requires that os.get_exec_path() is patched to support b'PATH' key. ---------- dependencies: +subprocess: support bytes program name (POSIX) keywords: +patch title: subprocess: add envb argument to Popen constructor (Python3, POSIX only) -> subprocess: canonicalize env to bytes on Unix (Python3) Added file: http://bugs.python.org/file17358/subprocess_canonalize_env.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8640> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com