Bug 150313

Summary: libcurl: missing punycode conversion
Product: [openSUSE] SUSE Linux 10.1 Reporter: Klaus Singvogel <kssingvo>
Component: NetworkAssignee: Michal Marek <mmarek>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None    
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Klaus Singvogel 2006-02-13 08:59:20 UTC
I tried to download from a German Umlaut-Domain, and noticed that curl is not capable to translate the domain into a Punycode encoding, and therefore the download failed.

Example:
   curl http://www.gunnar-gröbel.de/assets/images/Verkehr/239.gif -o 239.gif
should be converted (internaly) to:
   curl http://www.xn--gunnar-grbel-djb.de/assets/images/Verkehr/239.gif  -o 239.gif

Please note: konqueror and mozilla can display 'http://www.gunnar-gröbel.de/assets/images/Verkehr/239.gif'

For more information about Punycode look at http://www.ietf.org/rfc/rfc3492.txt or http://en.wikipedia.org/wiki/Punycode
Comment 1 Michal Marek 2006-02-13 12:25:54 UTC
There already is IDN support in curl, it's just not enabled in our package ;)

Andreas, can I still submit it an IDN-enabled curl package? 



BTW:
$ wget http://www.gunnar-gröbel.de/assets/images/Verkehr/239.gif
--12:44:49--  http://www.gunnar-gr%C3%B6bel.de/assets/images/Verkehr/239.gif
           => `239.gif'
Resolving www.gunnar-gr\303\266bel.de... failed: Dočasná chyba při vyhodnocování jména.
$ ping www.gunnar-gröbel.de
ping: unknown host www.gunnar-gröbel.de
$ nmap www.gunnar-gröbel.de

Starting Nmap 4.00 ( http://www.insecure.org/nmap/ ) at 2006-02-13 12:56 CET
Failed to resolve given hostname/IP: www.gunnar-gröbel.de.  Note that you can't use '/mask' AND '[1-4,7,100-]' style IP ranges
WARNING: No targets were specified, so 0 hosts scanned.
Nmap finished: 0 IP addresses (0 hosts up) scanned in 25.008 seconds

and so on...
Comment 2 Andreas Jaeger 2006-02-13 15:21:06 UTC
Go ahead and submit it today, please!
Comment 3 Michal Marek 2006-02-13 15:38:30 UTC
OK.