[issue41152] IDLE: revise setting of iomenu.encoding and .errors

Serhiy Storchaka report at bugs.python.org
Mon Jun 29 08:15:20 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

PR 21214 sets the encoding of stdin/stdout/stderr to 'utf-8'. Error handler is set to 'surrogatepass' or 'surrogateescape' because these error handlers are used when convert strings between Python and Tcl. It guarantees that reading from stdin and writing back to stdout will never fail, even if you paste garbage from clipboard. Printing file paths will never fail too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41152>
_______________________________________


More information about the Python-bugs-list mailing list