[issue8512] os.execv*e(): fix formatting of the environment variables (Python 3.1)

2010-04-25 Thread STINNER Victor
STINNER Victor added the comment: I choosed to backport #8391 fix to Python 3.1 (which is better) instead of writing a custom (shorter but incomplete) patch for Python 3.1: see msg104175. (os_execve_env.patch doesn't work if LANG environment variable is not set) -- resolution: -> fix

[issue8512] os.execv*e(): fix formatting of the environment variables (Python 3.1)

2010-04-23 Thread STINNER Victor
Changes by STINNER Victor : -- title: os.execv*e(): fix formatting of the environment variables -> os.execv*e(): fix formatting of the environment variables (Python 3.1) ___ Python tracker _

[issue8512] os.execv*e(): fix formatting of the environment variables

2010-04-23 Thread STINNER Victor
New submission from STINNER Victor : 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 speci