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, ncoghlan, vstinner
Date 2015-04-18.09:25:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
As a following of the issue #19977, I propose to use also the surrogateescape error handler in open() by default if the locale is C.

Attached issue adds a new sys.getdefaulterrorhandler() function and use it in io.TextIOWrapper (and _pyio.TextIOWrapper).

We may use sys.getdefaulterrorhandler() in more places.

I don't think that it would be correct to use in for str.encode() or bytes.decode().
Date User Action Args
2015-04-18 09:25:51vstinnersetrecipients: + vstinner, ncoghlan, ezio.melotti
2015-04-18 09:25:51vstinnersetmessageid: <>
2015-04-18 09:25:51vstinnerlinkissue23993 messages
2015-04-18 09:25:50vstinnercreate