Nick Coghlan added the comment: Victor was referring to code like "print(os.listdir())". Those are the motivating cases for ensuring round trips from system APIs to the standard streams work correctly.
There's also the problem that sys.argv currently relies on the locale encoding directly, because the filesystem encoding hasn't been worked out at that point (see issue 8776). So this current change will also make "print(sys.argv)" work more reliably in the POSIX locale. The conclusion I have come to is that any further decoupling of Python 3 from the locale encoding will actually depend on getting the PEP 432 bootstrapping changes implemented, reviewed and the PEP approved, so we have more interpreter infrastructure in place by the time the interpreter starts trying to figure out all these boundary encoding issues. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19977> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com