[issue8393] subprocess: support undecodable current working directory on POSIX OS

STINNER Victor report at bugs.python.org
Wed Apr 14 02:55:24 CEST 2010


New submission from STINNER Victor <victor.stinner at 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 <report at bugs.python.org>
<http://bugs.python.org/issue8393>
_______________________________________


More information about the Python-bugs-list mailing list