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.

classification
Title: IDNA StreamReader broken
Type: Stage:
Components: Unicode Versions: Python 2.3
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: doerwalter, loewis
Priority: normal Keywords:

Created on 2005-03-14 18:38 by doerwalter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg24587 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-03-14 18:38
It seems that the IDNA StreamReader is broken (this
problem occurs both in Python 2.3.4 and Python 2.4):

>>> import codecs, cStringIO
>>> r =
codecs.getreader("idna")(cStringIO.StringIO("abc"))   
          
>>> r.read(1)
u'a'
>>> r.read(1)
u'b'
>>> r.read(1)
u'c'
>>> r.read(1)
u'.'
>>> r.read(1)
u'.'

I would have expected that read(1) returns u"" after
the third call.
msg24588 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2005-08-25 11:05
Logged In: YES 
user_id=21627

Thanks for the report. Fixed in

idna.py 1.5
test_codecs.py 1.25
NEWS 1.1351
idna.py 1.4.4.1
test_codecs.py 1.15.2.7
NEWS 1.1193.2.85
History
Date User Action Args
2022-04-11 14:56:10adminsetgithub: 41696
2005-03-14 18:38:40doerwaltercreate