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

Amaury Forgeot d'Arc report at bugs.python.org
Mon Apr 19 10:15:56 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

It does not work on Windows:

>>> subprocess.Popen("c:/windows/notepad.exe", cwd=b'c:/temp')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\afa\python\py3k-1\lib\subprocess.py", line 681, in __init__
    restore_signals, start_new_session)
  File "D:\afa\python\py3k-1\lib\subprocess.py", line 892, in _execute_child
    startupinfo)
TypeError: must be string or None, not bytes

The function sp_CreateProcess() in PC/_subprocess.c should probably be fixed.
And please add unit tests...

----------
nosy: +amaury.forgeotdarc
resolution: fixed -> 
status: closed -> open

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


More information about the Python-bugs-list mailing list