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 ezio.melotti, lemburg, loewis, vstinner
Date 2011-12-21.00:48:43
SpamBayes Score 0.00154344
Marked as misclassified No
Message-id <1324428531.86.0.929600974446.issue13619@psf.upfronthosting.co.za>
In-reply-to
Content
I would be possible to implement incremental decoder with mbsrtowcs() and incremental encoder with wcsrtombs(), by serializing mbstate_t to a long integer (TextIOWrapper.tell() does something like that). The problem is that mbsrtowcs() and wcsrtombs() are "recent" (not always available). It may also be dangerous to allow the user to pass an arbitrary mbstate_t (using .setstate()).
History
Date User Action Args
2011-12-21 00:48:52vstinnersetrecipients: + vstinner, lemburg, loewis, ezio.melotti
2011-12-21 00:48:51vstinnersetmessageid: <1324428531.86.0.929600974446.issue13619@psf.upfronthosting.co.za>
2011-12-21 00:48:43vstinnerlinkissue13619 messages
2011-12-21 00:48:43vstinnercreate