New submission from STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8412>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to