[New-bugs-announce] [issue8412] os.system() doesn't support surrogates nor bytes

STINNER Victor report at bugs.python.org
Fri Apr 16 03:10:22 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

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().

----------
components: Library (Lib), Unicode
files: os_system_surrogates.patch
keywords: patch
messages: 103280
nosy: haypo
severity: normal
status: open
title: os.system() doesn't support surrogates nor bytes
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16941/os_system_surrogates.patch

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


More information about the New-bugs-announce mailing list