homepage

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 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.
History
Date User Action Args
2012年10月09日 21:39:20vstinnersetrecipients: + vstinner, ezio.melotti, serhiy.storchaka, lovelylain, Marcus.Gröber
2012年10月09日 21:39:20vstinnersetmessageid: <1349818760.55.0.20247791939.issue15278@psf.upfronthosting.co.za>
2012年10月09日 21:39:20vstinnerlinkissue15278 messages
2012年10月09日 21:39:20vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /