mspieth / rssdler

Automatically exported from code.google.com/p/rssdler
4 stars 0 forks source link

help(rssdler) bugs #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There may be multiple problems here, but I will assume that there is one
element causing all the bugs until proven otherwise. 

(semicolons indicate newline unless otherwise specified)

Behavior 1: UnicodeEncodeError
  Normally, import rssdler ; help(rssdler) works, with the below caveats
about broken less-like behavior. However, when following the following
steps, a UnicodeEncodeError is raised with help(rssdler):
  1) import core_module (assume urllib) [may be the same for others]
  2) help(urllib) , q to quit
  3) import rssdler
  4) help(urllib) , q to quit
  5) help(rssdler)
  6) See UnicodeEncodeError, trackback in footnote 1

Behavior 2: Broken less-like behavior for help(rssdler)
  0a) import core_module  (assume urllib)
  0b) help(urllib), notice less-like interface to the help output
  1) import rssdler
  2) help(rssdler)
  3) notice all the output scrolls immediately, much gets lost in scroll buffer

Behavior2b: rssdler breaks less-like behavior for help(othermodules)
  1) import rssdler
  2) import urllib
  3) help(urllib)
  4) notice output scrolls immediately

OR

  1) import urllib
  2) import rssdler
  3) help urllib
  4) notice output scrolls immediately

BUT NOT

  1) import urllib
  2) help(urllib)
  3) import rssdler
  4) help(urllib) 
  5) notice less-like behavior

Test Cases to follow in comments as they are created

[1]
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/site.py", line 333, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib/python2.4/pydoc.py", line 1656, in __call__
    self.help(request)
  File "/usr/lib/python2.4/pydoc.py", line 1700, in help
    else: doc(request, 'Help on %s:')
  File "/usr/lib/python2.4/pydoc.py", line 1483, in doc
    pager(title % desc + '\n\n' + text.document(object, name))
  File "/usr/lib/python2.4/pydoc.py", line 1331, in <lambda>
    return lambda text: pipepager(text, 'less')
  File "/usr/lib/python2.4/pydoc.py", line 1352, in pipepager
    pipe.write(text)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2208' in
position 22525: ordinal not in range(128)

Original issue reported on code.google.com by lostnihi...@gmail.com on 5 Feb 2008 at 3:22

GoogleCodeExporter commented 8 years ago
I should note that this is happening in r93. Have not looked back at other 
revisions.

Original comment by lostnihi...@gmail.com on 5 Feb 2008 at 3:25

GoogleCodeExporter commented 8 years ago
Behavior 1, step 4 (1.4) is not needed to get the exception

2.0a/b need to be done in a different python session, or else you trigger 1

Original comment by lostnihi...@gmail.com on 5 Feb 2008 at 3:34

GoogleCodeExporter commented 8 years ago
Test cases are now available, indicating two different causes to the behavior. 
This
ticket will be closed, due to different causes of the behavior.

For the Unicode problem, see Issue 17:
http://code.google.com/p/rssdler/issues/detail?id=17

For the less-like behavior problem, see Issue 16:
http://code.google.com/p/rssdler/issues/detail?id=16

Original comment by lostnihi...@gmail.com on 5 Feb 2008 at 5:08