[ python-Bugs-1163178 ] IDNA StreamReader broken
SourceForge.net
noreply at sourceforge.net
Thu Aug 25 13:05:04 CEST 2005
Bugs item #1163178, was opened at 2005-03-14 19:38
Message generated for change (Settings changed) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1163178&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Unicode
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
Assigned to: Martin v. Löwis (loewis)
Summary: IDNA StreamReader broken
Initial Comment:
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.
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2005-08-25 13:05
Message:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1163178&group_id=5470
More information about the Python-bugs-list
mailing list