[issue15379] Charmap decoding of no-BMP characters

Amaury Forgeot d'Arc report at bugs.python.org
Wed Jul 18 13:02:20 CEST 2012


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

In 3.2, narrow build is also broken when the "charmap" is a string:
>>> codecs.charmap_decode(b'\0', 'strict', '\U0002000B')
returns ('𠀋', 1) with a wide unicode build, but ('\ud840', 1) with a narrow build.

3.2 could be fixed to allow characters up to sys.maxunicode, though.

----------
nosy: +amaury.forgeotdarc

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


More information about the Python-bugs-list mailing list