[issue9425] Rewrite import machinery to work with unicode paths

STINNER Victor report at bugs.python.org
Fri Aug 13 23:27:24 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

New version of the patch _Py_wchar2char-2.patch:
 - _Py_wchar2char() only escapes characters in range U+DC80..U+DCFF (instead of U+DC00..U+DCFF)
 - add a comment to _Py_char2wchar()

> I don't understand why you decrement `size` in the second pass.

Because I would like to avoid buffer overflow when calling wcstombs(). wcstombs() might write more bytes at the second step, even if I don't think that it would be possible.

----------
Added file: http://bugs.python.org/file18514/_Py_wchar2char-2.patch

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


More information about the Python-bugs-list mailing list