Mark Dickinson <dicki...@gmail.com> added the comment: Updated Victor's patch:
- applies cleanly against newly whitespace-normalized unicodeobject.c - renamed USE_WCHAR_SURROGATE to CONVERT_WCHAR_TO_SURROGATES - add defined(SIZEOF_WCHAR_T) check I find the patched version of PyUnicode_FromWideChar quite hard to follow with all the #ifdefery. I wonder whether it might be better to define a _PyUnicode16_FromWideChar32 helper function instead. Added file: http://bugs.python.org/file13166/unicode_fromwidechar_surrogate-5.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4474> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com