[New-bugs-announce] [issue23993] Use surrogateescape error handler by default in open() if the locale is C
STINNER Victor
report at bugs.python.org
Sat Apr 18 11:25:51 CEST 2015
New submission from STINNER Victor:
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().
----------
components: Unicode
files: default_error_handler.patch
keywords: patch
messages: 241405
nosy: ezio.melotti, haypo, ncoghlan
priority: normal
severity: normal
status: open
title: Use surrogateescape error handler by default in open() if the locale is C
versions: Python 3.5
Added file: http://bugs.python.org/file39100/default_error_handler.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23993>
_______________________________________
More information about the New-bugs-announce
mailing list