[Patches] Objects/unicodeobject.c(PyUnicode_DecodeUTF8): Fix error
handling
M.-A. Lemburg
mal@lemburg.com
Sat, 13 May 2000 12:40:04 +0200
Florian Weimer wrote:
>
> The attached patch fixes error handling and improves the treatment of
> invalid characters in "replace" mode. Now, an incomplete or otherwise
> invalid UTF-8 sequence generates exactly one replacement character.
> As a result, the Python UTF-8 decoder now passes Markus Kuhn's UTF-8
> stress test.
Looks good :-)
--
Marc-Andre Lemburg
______________________________________________________________________
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/