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 cben
Date 2004-11-14.01:36:55
SpamBayes Score
Marked as misclassified
The pydoc module currently only outputs ASCII and
crashes with UnicodeEncodeError when printing a unicode
string (in contexts where it prints the str rather than
a repr, e.g. docstrings or variables like
`__credits__`).  The most ironic example of it is that
since patch 1009389 was committed, `` pydoc``
crashes on its own `__credits__`!

This patch changes pydoc help functions to return
unicode strings only when needed; it returns ASCII
strings if all characters are from ASCII.  Therefore
there should be no compatibility problems.

For output, all pager functions were changed to encode
to the locale's preferred encoding and HTML output was
changed to always use UTF-8., and/or seems to rely on pydoc to some
degree.  I didn't touch them, so they might still be
broken in this respect.
Date User Action Args
2007-08-23 15:40:41adminlinkissue1065986 messages
2007-08-23 15:40:41admincreate