[issue4474] PyUnicode_FromWideChar incorrect for characters outside the BMP (unix only)

Mark Dickinson report at bugs.python.org
Sat Jan 17 14:18:36 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

> I understand this code as: sizeof(wchar_t) == sizeof(Py_UNICODE). If I 
> misunderstood the code, it's a a heap overflow :-)

Yep, sorry.  You're right.

>> A test would be good, too.
>
>PyUnicode_FromWideChar() is not a public API. Should I write a function 
>in _testcapi?

I was actually thinking of a test for the "No such file or directory" 
bug that's mentioned at the start of the discussion.

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


More information about the Python-bugs-list mailing list