You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os.system() doesn't support surrogates nor bytes #52659
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2010-04-16.12:48:34.445>created_at=<Date2010-04-16.01:10:20.582>labels= ['library', 'expert-unicode']
title="os.system() doesn't support surrogates nor bytes"updated_at=<Date2010-04-16.12:48:34.444>user='https://github.com/vstinner'
os.system() doesn't support bytes, bytearray not str containing surrogates.
Attached patch uses PyUnicode_FSConverter, bytes2str and release_bytes in (the non-Windows version of) os.system() to support all of this. It locks the buffer because os.system() releases the GIL when calling system().
Activity
vstinner commentedon Apr 16, 2010
os.system() doesn't support bytes, bytearray not str containing surrogates.
Attached patch uses PyUnicode_FSConverter, bytes2str and release_bytes in (the non-Windows version of) os.system() to support all of this. It locks the buffer because os.system() releases the GIL when calling system().
vstinner commentedon Apr 16, 2010
See also bpo-8391 (os.execvpe env) and bpo-8393 (subprocess cwd).
vstinner commentedon Apr 16, 2010
Commited to py3k as r80105. Let see if buildbots are happy or not :-)
vstinner commentedon Apr 16, 2010
The buildbots look happy: backported to 3.1 as r80110.