2 messages in org.python.python-bugs-list[ python-Bugs-909230 ] bug in idna-en...
FromSent OnAttachments
SourceForge.netMar 3, 2004 4:03 pm 
SourceForge.netMar 5, 2004 2:51 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ python-Bugs-909230 ] bug in idna-encoding-moduleActions...
From:SourceForge.net (nore@sourceforge.net)
Date:Mar 5, 2004 2:51:56 pm
List:org.python.python-bugs-list

Bugs item #909230, was opened at 2004-03-03 13:13 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=909230&group_id=5470

Category: Python Library Group: Python 2.3 Status: Open Resolution: None Priority: 5 Submitted By: Rumpeltux (rumpeltux)

Assigned to: Martin v. L?wis (loewis)

Summary: bug in idna-encoding-module

Initial Comment: in /usr/lib/python2.3/encodings/idna.py, line 175 it goes: lables = input.split('.') which causes the interpreter to stop executing the program, but by changing it to labels = dots.split(input) everything's fine ;)

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)

Date: 2004-03-05 14:52

Message: Logged In: YES user_id=33168

Martin, it looks like line 174: unicode(input, "ascii") should be input = unicode(input, "ascii"). I'm not sure what's supposed to happenning here, but it looks like the if/else code block may be able to be rewritten as:

if not isinstance(input, unicode): input = unicode(input, "ascii") labels = dots.split(input)

----------------------------------------------------------------------