]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport the UTF-8 codec from 2.3 and add a work-around to let the
authorMarc-André Lemburg <mal@egenix.com>
Tue, 24 Sep 2002 14:06:55 +0000 (14:06 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Tue, 24 Sep 2002 14:06:55 +0000 (14:06 +0000)
commit1e616dcafbf75906da2a1fc2d6415b7071bdda93
tree3610071259b10cd260fbb8d315a18b0fb32d8337
parent6f3c65422d6a2309d84dfdc0698d7825bc9063f9
Backport the UTF-8 codec from 2.3 and add a work-around to let the
UTF-8 decoder accept broken UTF-8 sequences which encode lone
high surrogates (the pre-2.2.2 versions forgot to generate the
UTF-8 prefix \xed for these).

Fixes SF bug #610783: Lone surrogates cause bad .pyc files.
Lib/test/test_unicode.py
Objects/unicodeobject.c