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

STINNER Victor report at bugs.python.org
Mon Apr 19 12:02:55 CEST 2010


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

> PEP 277 explicitly states that unicode strings should be passed to
>  wide-character functions, whereas byte strings use "standard"
> functions. This is done in posixmodule.c, for example.

CreateProcessW takes a lot of arguments. Should we CreateProcessA or CreateProcessW if some arguments are byte string and other are unicode string?

> The "current locale" is a moving thing.

Don't CreateProcessA do the same thing? Convert byte string to unicode using the current locale. To use the right words, by "current locale" I mean the "mbcs" Windows codec.

----------

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


More information about the Python-bugs-list mailing list