[issue9979] Create PyUnicode_AsWideCharString() function
STINNER Victor
report at bugs.python.org
Wed Sep 29 03:00:58 CEST 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
New version of the patch:
- fix PyUnicode_AsWideCharString() :-)
- replace PyUnicode_AsWideChar() by PyUnicode_AsWideCharString() in most functions using PyUnicode_AsWideChar()
- indicate that PyUnicode_AsWideCharString() raises a MemoryError on error
Keep the call to PyUnicode_AsWideChar() in:
- Modules/getpath.c because getpath.c uses a global limitation of MAXPATHLEN+1 characters
- WCharArray_set_value() and U_set() of ctypes because the output buffer size is fixed
----------
Added file: http://bugs.python.org/file19055/pyunicode_aswidecharstring-2.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9979>
_______________________________________
More information about the Python-bugs-list
mailing list