Message172535
>>> codecs.utf_8_decode('\u20ac'.encode('utf8')[:2])
('', 0)
Oh... codecs.CODEC_decode are incremental decoders? I misunderstood completly this.
"The bug is an issue in the design of codecs.Stream* classes: incremental decoders and encoders should be used instead of classic decoders/encoders."
Hum, I suppose that the issue cannot be reproduded with TextIOWrapper, just because io.TextIOWrapper and codecs.StreamReader use different buffer sizes. |
|
Date |
User |
Action |
Args |
2012-10-09 21:39:20 | vstinner | set | recipients:
+ vstinner, ezio.melotti, serhiy.storchaka, lovelylain, Marcus.Gröber |
2012-10-09 21:39:20 | vstinner | set | messageid: <1349818760.55.0.20247791939.issue15278@psf.upfronthosting.co.za> |
2012-10-09 21:39:20 | vstinner | link | issue15278 messages |
2012-10-09 21:39:20 | vstinner | create | |
|