[issue14153] Expose os.device_encoding() at the C level
STINNER Victor
report at bugs.python.org
Wed Feb 29 19:24:19 CET 2012
STINNER Victor <victor.stinner at 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 <report at bugs.python.org>
<http://bugs.python.org/issue14153>
_______________________________________
More information about the Python-bugs-list
mailing list