Serhiy Storchaka added the comment: Yes, I see. The patch exposed existing bug in decoding error handing. See issue23321 for this. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22286> _______________________________________