Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: Today I learned something: wchar_t can be 2 or 4 bytes, PyUNICODE can be 2 or 4 bytes, and all combinations are possible. My error was to use PyUnicode_FromUnicode on a wchar_t*; PyUnicode_FromWideChar is the obvious function to use.
Attached a new patch (command_unicode_2.patch) for review. ---------- keywords: +needs review priority: high -> critical Added file: http://bugs.python.org/file11545/command_unicode_2.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3705> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com