[issue10830] PyUnicode_FromFormatV("%c") doesn't support non-BMP characters on narrow build

STINNER Victor report at bugs.python.org
Wed Jan 5 02:43:12 CET 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

PyUnicode_FromFormatV("%c") supposes that an unicode character is always stored as a single Py_UNICODE word: but that's wrong on narrow build with characters in [U+10000; U+10FFFF].

Attached patch fixes this bug.

See also #10829.

----------
components: Interpreter Core, Unicode
files: pyunicode_fromformatv_c.patch
keywords: patch
messages: 125393
nosy: amaury.forgeotdarc, haypo
priority: normal
severity: normal
status: open
title: PyUnicode_FromFormatV("%c") doesn't support non-BMP characters on narrow build
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file20265/pyunicode_fromformatv_c.patch

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


More information about the Python-bugs-list mailing list