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 <1422890485.44.0.661003326302.issue23374@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
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: <1422890485.44.0.661003326302.issue23374@psf.upfronthosting.co.za>
2015-02-02 15:21:25serhiy.storchakalinkissue23374 messages
2015-02-02 15:21:25serhiy.storchakacreate