[issue15791] pydoc does not handle non-ASCII unicode AUTHOR field
Éric Araujo added the comment: I think this works if you set PYTTHONIOENCODING=utf-8 in your environment. (2.6 does not get bugfixes anymore.) -- title: pydoc does not handle unicode AUTHOR field - pydoc does not handle non-ASCII unicode AUTHOR field versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15791 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15791] pydoc does not handle non-ASCII unicode AUTHOR field
É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 rep...@bugs.python.org http://bugs.python.org/issue15791 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15791] pydoc does not handle non-ASCII unicode AUTHOR field
R. David Murray added the comment: There is a proposed patch in issue 1065986 waiting for review. -- nosy: +r.david.murray resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Fix pydoc crashing on unicode strings type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15791 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com