[ python-Bugs-1027206 ] unicode DNS names in socket, urllib, urlopen

SourceForge.net noreply at sourceforge.net
Tue Sep 14 09:32:49 CEST 2004


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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Damjan Georgievski (gdamjan)
Assigned to: Nobody/Anonymous (nobody)
Summary: unicode DNS names in socket, urllib, urlopen

Initial Comment:
http://docs.python.org/whatsnew/node18.html says that
unicode host names are allowed in the socket module
(automatically converting them by the IDNA spec), but
is seems the support is not fully implemented.

only the connect method of a socket instance will do
the auto conversion to a 'idna' string. 
socket.getaddr* functions will not!

Also other modules should support unicode hostnames.
(httplib already does) but urllib and urllib2 don't.


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

>Comment By: Martin v. Löwis (loewis)
Date: 2004-09-14 09:32

Message:
Logged In: YES 
user_id=21627

Would you be interested in developing patches? For the
socket module, the bug is clear, and probably
straight-forward to fix. For urllib[2], issues are more
difficult, as Python should eventually support IRIs. It
appears that draft-duerst-iri-09 is going to become the RFC,
so changes for urllib either need to take this into account,
or be postponed after the RFC is published.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1027206&group_id=5470


More information about the Python-bugs-list mailing list