[issue14153] Expose os.device_encoding() at the C level
Brett Cannon
report at bugs.python.org
Wed Feb 29 19:38:09 CET 2012
Brett Cannon <brett at python.org> added the comment:
OK, so if on windows or isatty + nl_langinfo + CODESET, check fd 0 for a returned string that codecs.lookup and find something for. fd 42 (if not a tty) should return None.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14153>
_______________________________________
More information about the Python-bugs-list
mailing list