[issue15791] pydoc does not handle non-ASCII unicode AUTHOR field
Éric Araujo
report at bugs.python.org
Mon Aug 27 17:38:39 CEST 2012
Éric Araujo added the comment:
One could argue that since print does respect the terminal encoding if sys.stdin is a tty, pydoc could be as smart and do the same. I think the problem comes from the use of a pager, which means a subprocess, which mean that the streams are not ttys and the encoding can’t be detected. print doesn’t work either with pipes: python -c "import foo; print foo.__author__" | cat
So I fear that this bug may only get a doc note.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15791>
_______________________________________
More information about the Python-bugs-list
mailing list