STINNER Victor <victor.stinner at haypocalc.com> added the comment: I confirm, there is a bug in codecs.StreamReader. ---------- nosy: +haypo _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue12508> _______________________________________