Message172535
| Author |
vstinner |
| Recipients |
Marcus.Gröber, ezio.melotti, lovelylain, serhiy.storchaka, vstinner |
| Date |
2012年10月09日.21:39:20 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1349818760.55.0.20247791939.issue15278@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
>>> 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. |
|