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

STINNER Victor report at bugs.python.org
Mon Apr 19 11:09:34 CEST 2010

STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> It does not work on Windows

I always consider Windows as a special case because Windows uses unicode internally. Byte string are converted quickly to unicode using the current locale.

My patch was for UNIX/BSD which uses byte string internally.

sp_CreateProcess() in PC/_subprocess.c uses CreateProcessW. To support byte string, we should use the byte string version of CreateProcess ("CreateProcessA" ?) or convert current directory to unicode (using the current locale). The second solution minimize the changes.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list