Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue41152>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to