Serhiy Storchaka added the comment:

> This issue may be related or a duplicate of #11461.

Oh, yes, it is a duplicate. I totally forgot about it and made the work again.

> Only incremental decoder should return partial results. Other decoders are
> strict and (usually) stateless.

Yes, there is a incremental decoder.

> >>> decoder('\u20ac'.encode('utf8')[:2], 'strict')
> 
> UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1:
> unexpected end of data

>>> codecs.utf_8_decode('\u20ac'.encode('utf8')[:2])
('', 0)

----------

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

Reply via email to