[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Changes by Florent Xicluna : Added file: http://bugs.python.org/file15831/issue7675_pydoc_v2.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff ___ Python tracker ___ ___ Python-bugs-list

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: New patch: backward compatibility preserved. -- Added file: http://bugs.python.org/file15830/issue7675_pydoc_v2.diff ___ Python tracker ___ ___

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file15828/issue7675_pydoc.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch should also work with 8-bit docstrings, and the tests should reflect both uses. -- nosy: +pitrou ___ Python tracker ___ _

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: The unicode text is sent to the subprocess without encoding. It is encoded implicitly to ASCII (sys.getdefaultencoding()). This patch performs explicit encoding. Tests added. -- keywords: +patch stage: needs patch -> patch review versions: +Python 3.2

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread Florent Xicluna
Florent Xicluna added the comment: Confirmed. With Python 2: >>> import pydoc >>> pydoc.pipepager(u'tütdelüt\n', 'cat') Traceback (most recent call last): File "", line 1, in File "./Lib/pydoc.py", line 1357, in pipepager pipe.write(text) UnicodeEncodeError: 'ascii' codec can't encode

[issue7675] help() doesn't accept unicode literals in built in docstrings

2010-01-11 Thread pablo stapff
New submission from pablo stapff : We use umlaut in our docstrings and when we use the help() function to extract the documentation, the function reports an error: UnicodeEncodeError: 'ascii' codec can't encode character Our docstrings are specified as unicode literals and the source file