Issue 8412: os.system() doesn't support surrogates nor bytes
Issue8412
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2010-04-16 01:10 by vstinner, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| os_system_surrogates.patch | vstinner, 2010-04-16 01:10 | |||
| Messages (4) | |||
|---|---|---|---|
| msg103280 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2010-04-16 01:10 | |
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(). |
|||
| msg103281 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2010-04-16 01:12 | |
See also #8391 (os.execvpe env) and #8393 (subprocess cwd). |
|||
| msg103314 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2010-04-16 11:45 | |
Commited to py3k as r80105. Let see if buildbots are happy or not :-) |
|||
| msg103318 - (view) | Author: STINNER Victor (vstinner) * ![]() |
Date: 2010-04-16 12:48 | |
> Commited to py3k as r80105 The buildbots look happy: backported to 3.1 as r80110. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:59 | admin | set | github: 52659 |
| 2010-04-16 12:48:34 | vstinner | set | status: open -> closed resolution: fixed |
| 2010-04-16 12:48:23 | vstinner | set | messages: + msg103318 |
| 2010-04-16 11:45:38 | vstinner | set | messages: + msg103314 |
| 2010-04-16 01:12:19 | vstinner | set | messages: + msg103281 |
| 2010-04-16 01:10:46 | vstinner | link | issue8242 dependencies |
| 2010-04-16 01:10:20 | vstinner | create | |
