This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients eric.araujo, ezio.melotti, maker
Date 2012-08-27.15:38:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1346081919.52.0.319338795869.issue15791@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-08-27 15:38:39eric.araujosetrecipients: + eric.araujo, ezio.melotti, maker
2012-08-27 15:38:39eric.araujosetmessageid: <1346081919.52.0.319338795869.issue15791@psf.upfronthosting.co.za>
2012-08-27 15:38:39eric.araujolinkissue15791 messages
2012-08-27 15:38:38eric.araujocreate