New submission from STINNER Victor <victor.stin...@haypocalc.com>: In py3k, subprocess uses _posixsubprocess.fork_exec() function. This function uses surrogateescape error handler for most arguments, but not for the current working directory (cwd).
Attached patch uses PyUnicode_FSConverter() as done for other arguments. I don't know if PyUnicode_FSConverter() result is always a PyBytes, so I added an assertion. It should be fixed. ---------- components: Library (Lib), Windows files: posixsubprocess_cwd.patch keywords: patch messages: 103105 nosy: haypo severity: normal status: open title: subprocess: support undecodable current working directory on POSIX OS versions: Python 3.1, Python 3.2 Added file: http://bugs.python.org/file16920/posixsubprocess_cwd.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8393> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com