]> granicus.if.org Git - python/commit
Apply SF patch #1775604: This adds three new codecs (utf-32, utf-32-le and
authorWalter Dörwald <walter@livinglogic.de>
Thu, 16 Aug 2007 21:55:45 +0000 (21:55 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 16 Aug 2007 21:55:45 +0000 (21:55 +0000)
commit41980caf644163f1ff74a793b30f1c424eeede82
treedba1c68090fce4379eced5a27a5b8d4b4f55340c
parent066100909ae45e7acd59b2ac81338d3cfcf44384
Apply SF patch #1775604: This adds three new codecs (utf-32, utf-32-le and
ut-32-be). On narrow builds the codecs combine surrogate pairs in the unicode
object into one codepoint on encoding and create surrogate pairs for
codepoints outside the BMP on decoding. Lone surrogates are passed through
unchanged in all cases.

Backport to the trunk will follow.
12 files changed:
Doc/c-api/concrete.rst
Doc/library/codecs.rst
Include/unicodeobject.h
Lib/encodings/aliases.py
Lib/encodings/utf_32.py [new file with mode: 0644]
Lib/encodings/utf_32_be.py [new file with mode: 0644]
Lib/encodings/utf_32_le.py [new file with mode: 0644]
Lib/test/test_codeccallbacks.py
Lib/test/test_codecs.py
Misc/NEWS
Modules/_codecsmodule.c
Objects/unicodeobject.c