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 serhiy.storchaka
Recipients martin.panter, r.david.murray, serhiy.storchaka, skip.montanaro
Date 2015-02-02.15:21:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There are few levels of this issue:

1) pydoc doesn't escape characters according to output encoding. It escapes characters uneencodable with sys.getfilesystemencoding(), but this encoding can differ from the encoding of sys.stdout or default encoding.

2) Default encoding for io.TestIOWrapper() and open() can be different from sys.getfilesystemencoding(). And it unexpectedly can be ASCII.

3) Mac OS doesn't support locales with the utf8 encoding (without hyphen).

Here is a patch which solves first level -- makes pydoc using appropriate encoding with the backslashreplace error handler.
Date User Action Args
2015-02-02 15:21:25serhiy.storchakasetrecipients: + serhiy.storchaka, skip.montanaro, r.david.murray, martin.panter
2015-02-02 15:21:25serhiy.storchakasetmessageid: <>
2015-02-02 15:21:25serhiy.storchakalinkissue23374 messages
2015-02-02 15:21:25serhiy.storchakacreate