Message172536
| 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. |
|