Nick Coghlan <ncoghlan at gmail.com> added the comment: Patch generally looks good, but the type of retbuf is incorrect (should be Py_UNICODE* rather than wchar_t*). ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue9951> _______________________________________