[New-bugs-announce] [issue8391] os.execvpe() doesn't support surrogates in env

STINNER Victor report at bugs.python.org
Wed Apr 14 02:01:38 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

It would be nice to support the PEP 383 (surrogateescape) for environment variables in os.execvpe(). Attached patch uses PyUnicode_AsEncodedString(val, Py_FileSystemDefaultEncoding, "surrogateescape") to encode an environment variable value.

I'm not sure that PyUnicode_AsEncodedString(val, Py_FileSystemDefaultEncoding, "surrogateescape") does always return a PyBytes object.

I not patched environment keys, but it might be useful.

----------
components: Library (Lib), Unicode
files: os_execvpe_surrogates.patch
keywords: patch
messages: 103100
nosy: haypo
severity: normal
status: open
title: os.execvpe() doesn't support surrogates in env
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16918/os_execvpe_surrogates.patch

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


More information about the New-bugs-announce mailing list