[issue17223] Initializing array.array with unicode type code and buffer segfaults
STINNER Victor
report at bugs.python.org
Tue Feb 26 15:34:12 CET 2013
STINNER Victor added the comment:
On Windows, test_array can use an invalid surrogate pair to test this
issue: b'\xff\xdf\x61\x00' for example.
I don't know how to easily check the size of wchar_t.
ctypes.sizeof(ctypes.c_wchar) can be used, but ctypes is not always
available. sys.unicode is now always 0x10ffff since Python 3.3.
PyUnicode_GetMax() is not accessible in Python.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17223>
_______________________________________
More information about the Python-bugs-list
mailing list