New submission from STINNER Victor <victor.stin...@haypocalc.com>:

os.execve() and os.execvpe() of Python 3.1 eats some bytes of the environment 
variables: see msg103459. The problem is that it counts *characters* to 
allocate the *byte* string buffer.

Attached patch fixes this issue. It contains a test which may stay specific to 
Python 3.1 because Python 3.2 have its own test for non-ASCII environment 
variables: test_undecodeable_env in test_subprocess (introduced by #8391).

See also #8391.

----------
keywords: +patch
nosy: +Arfrever
title: os.execvpe() -> os.execv*e(): fix formatting of the environment variables
Added file: http://bugs.python.org/file17059/os_execve_env.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8512>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to