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 vstinner
Recipients matrixise, r.david.murray, skrah, vstinner
Date 2014-05-02.19:39:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1399059558.44.0.820449245901.issue21398@psf.upfronthosting.co.za>
In-reply-to
Content
heapq documentation contains "François" which is not encodable to ASCII. When using LC_ALL=C, the locale encoding is ASCII (at least on Linux). It's not easy to specify a different error handler globally in pydoc, different functions are used and child processes are spawned. The subprocess module doesn't allow to specify an error handler different than strict (see #6135).

I propose pydoc_encoding.patch which escapes manually non-encodable characters. I chose sys.getfilesystemencoding(), I'm not sure that it's the encoding used for all cases of getpager() on all platforms. For example, on Windows, sys.getfilesystemencoding() is the ANSI code page, whereas sys.stdout.encoding is the OEM code page.
History
Date User Action Args
2014-05-02 19:39:18vstinnersetrecipients: + vstinner, r.david.murray, skrah, matrixise
2014-05-02 19:39:18vstinnersetmessageid: <1399059558.44.0.820449245901.issue21398@psf.upfronthosting.co.za>
2014-05-02 19:39:18vstinnerlinkissue21398 messages
2014-05-02 19:39:18vstinnercreate