Serhiy Storchaka added the comment: > "The surrogateescape error handler works with any codec."
Ah, sorry. You are correct. > Correct, but it's not something new: os.listdir(), sys.argv, os.environ and other functions using os.fsdecode(). Applications should already have to support surrogates. I'm only saying that this will increase a number of cases when an exception will raised in unexpected place. Perhaps it will be safe left the "strict" default error handler and make the errors attribute of text streams modifiable. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18713> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com