This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Marcus.Gröber, ezio.melotti, lovelylain, serhiy.storchaka, vstinner
Date 2012-10-09.21:43:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349819036.04.0.183023786277.issue15278@psf.upfronthosting.co.za>
In-reply-to
Content
> Hum no. The bug is an issue in the design of codecs.Stream* classes: incremental decoders and encoders should be used instead of classic decoders/encoders.

I don't understand you. StreamReader and IncrementalDecoder both use the same decoder.

class IncrementalDecoder(codecs.BufferedIncrementalDecoder):
    _buffer_decode = codecs.utf_16_le_decode

class StreamReader(codecs.StreamReader):
    decode = codecs.utf_16_le_decode

> I don't want to fix this issue: it's better to move to the io library for the reasons listed in the PEP 400.

The bug in utf-16 decoder, not in codecs.StreamReader.
History
Date User Action Args
2012-10-09 21:43:56serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, ezio.melotti, lovelylain, Marcus.Gröber
2012-10-09 21:43:56serhiy.storchakasetmessageid: <1349819036.04.0.183023786277.issue15278@psf.upfronthosting.co.za>
2012-10-09 21:43:56serhiy.storchakalinkissue15278 messages
2012-10-09 21:43:55serhiy.storchakacreate