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

Reply via email to