[issue12561] Compiler workaround for wide string constants in Modules/getpath.c (patch)

STINNER Victor report at bugs.python.org
Fri Jul 15 17:36:50 CEST 2011


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

Use >L"" CONSTANT< to decode a byte string to a character string doesn't work with non-ASCII strings. _Py_char2wchar() should be used instead: see for example this fix, commit 5b6e13b6b473.

----------
nosy: +haypo

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


More information about the Python-bugs-list mailing list