Message172536
> 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. |
|
Date |
User |
Action |
Args |
2012-10-09 21:43:56 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, ezio.melotti, lovelylain, Marcus.Gröber |
2012-10-09 21:43:56 | serhiy.storchaka | set | messageid: <1349819036.04.0.183023786277.issue15278@psf.upfronthosting.co.za> |
2012-10-09 21:43:56 | serhiy.storchaka | link | issue15278 messages |
2012-10-09 21:43:55 | serhiy.storchaka | create | |
|