Ezio Melotti added the comment: I confirmed the problem on default (3.6) and verified that it works as expected using utf-8 instead of iso-2022-jp. The code in the above message should be converted into a unittest, and related codecs should be checked as well. The problem is probably in Modules/cjkcodecs/_codecs_iso2022.c
---------- components: +Extension Modules stage: needs patch -> test needed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25863> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com