Berker Peksag added the comment:
I suppose this is a duplicate of #1065986.
Yes, it is. I created a test file from the tests in issue6625_pydoc.diff and
ran it on the current 2.7 branch.
def foo():
ufooo bar
baz
\xfcnicode\u2026
return 42
def bar():
uf\xfcr Elise
Torsten Landschoff added the comment:
I tested this as well and it seems to work now. :-) Thanks for fixing it!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6625
___
Akira Kitada added the comment:
I suppose this is a duplicate of #1065986.
--
nosy: +akitada
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6625
___
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6625
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6625
___
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6625
___
___
Florent Xicluna la...@yahoo.fr added the comment:
Patch with same tests as the previous one, but using better heuristic for
output encoding (like Christoph patch).
Added the replace error handling, if the output encoding cannot encode all
characters.
--
Added file:
Christoph Burgmer cburg...@ira.uka.de added the comment:
Here is a diff for test/test_pydoc.py (against Python2.6) which though
doesn't trigger due to how Python handles output encoding. This test
here will pass, but pydoc will still fail:
$ pydoc test/pydoc_mod.py /dev/null
Traceback (most
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
After applying your patch, are string (not unicode) docstrings still
being handled properly?
Adding a test case (in Lib/test/test_pydoc.py) would be nice too.
--
nosy: +gagenellina
___
New submission from Christoph Burgmer cburg...@ira.uka.de:
pydoc fails with a UnicodeEncodeError for properly specified Unicode
docstrings (u...) on the command line interface.
See attached patch that encodes the output with the system's encoding.
--
components: Extension Modules
10 matches
Mail list logo