[issue15791] pydoc does not handle non-ASCII unicode AUTHOR field

2012-08-27 Thread R. David Murray
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 ___

[issue15791] pydoc does not handle non-ASCII unicode AUTHOR field

2012-08-27 Thread Éric Araujo
É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 enco

[issue15791] pydoc does not handle non-ASCII unicode AUTHOR field

2012-08-27 Thread Éric Araujo
É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 __