Message241405
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:51 | vstinner | set | recipients:
+ vstinner, ncoghlan, ezio.melotti |
2015-04-18 09:25:51 | vstinner | set | messageid: <1429349151.1.0.641370404.issue23993@psf.upfronthosting.co.za> |
2015-04-18 09:25:51 | vstinner | link | issue23993 messages |
2015-04-18 09:25:50 | vstinner | create | |
|