[issue13072] Getting a buffer from a Unicode array uses invalid format
Stefan Krah
report at bugs.python.org
Mon Oct 3 12:52:43 CEST 2011
Stefan Krah <stefan-usenet at bytereef.org> added the comment:
>It would be better to use a format for a Py_UCS4 string, but struct doesn't support such type.
PEP-3118 suggests for the extended struct syntax:
'c' -> ucs-1 (latin-1) encoding
'u' -> ucs-2
'w' -> ucs-4
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13072>
_______________________________________
More information about the Python-bugs-list
mailing list