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 martin.panter
Recipients ezio.melotti, martin.panter, pitrou, r.david.murray, socketpair, vstinner
Date 2015-12-15.06:48:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1450162122.54.0.82736491461.issue25849@psf.upfronthosting.co.za>
In-reply-to
Content
I’m starting to understand that there might be a “reconstruction algorithm” needed. When reading, TextIOWrapper buffers decoded characters. If you call tell() and there is unread but decoded data, it is not enough to return the incremental decoder state. You have to handle the unread buffered data as well. Looking at the _pyio tell() implementation, it tries to wind the decoder backwards to minimize the state.
History
Date User Action Args
2015-12-15 06:48:42martin.pantersetrecipients: + martin.panter, pitrou, vstinner, ezio.melotti, r.david.murray, socketpair
2015-12-15 06:48:42martin.pantersetmessageid: <1450162122.54.0.82736491461.issue25849@psf.upfronthosting.co.za>
2015-12-15 06:48:42martin.panterlinkissue25849 messages
2015-12-15 06:48:42martin.pantercreate