Message217779
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. |
|
Date |
User |
Action |
Args |
2014-05-02 19:39:18 | vstinner | set | recipients:
+ vstinner, r.david.murray, skrah, matrixise |
2014-05-02 19:39:18 | vstinner | set | messageid: <1399059558.44.0.820449245901.issue21398@psf.upfronthosting.co.za> |
2014-05-02 19:39:18 | vstinner | link | issue21398 messages |
2014-05-02 19:39:18 | vstinner | create | |
|