Nick Coghlan added the comment: I confess I didn't independently verify the glib claim in the Stack Overflow post.
However, Toshio's post covers the specific error case we were discussing at Flock (and I had misremembered), where the standard streams are classed as "OS APIs" for the purpose of deciding which encoding to use, but as user data APIs for the purpose of deciding which error handler to use. So the standard streams are only "sort of" an OS API, since they don't participate in the surrogateescape based round tripping guarantee by default. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19846> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com