STINNER Victor <victor.stin...@gmail.com> added the comment: > For fd 0, it should be a string if the fd is a tty.
os.device_encoding() returns None on a non-Windows OS without langinfo support. locale.nl_langinfo(locale.CODESET) may be used in such test. (to check for nl_langinfo() support?) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14153> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com