Ezio Melotti <ezio.melo...@gmail.com> added the comment:

Here is an incomplete patch. It seems to solve the problem but I still have to 
add more tests and check it better.
I also wonder if the sequences with the first byte in range F5-FD (start of 
4/5/6-byte sequences, restricted by RFC 3629) should behave in the same way. 
Right now they just "eat" the following 4/5/6 chars without checking.

----------
keywords: +patch
Added file: http://bugs.python.org/file16720/issue8271.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8271>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to