[issue9679] unicode DNS names in urllib, urlopen

2015-03-13 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag versions: +Python 3.5 -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-bugs

[issue9679] unicode DNS names in urllib, urlopen

2015-03-13 Thread Demian Brecht
Demian Brecht added the comment: Here's a simple patch that adds functionality matching that in http.client to urllib.request. As pointed out by John, I see no reason why urllib and http.client shouldn't have consistent handling if IDNs independent of IRIs (although IRI encoding would be a nic

[issue9679] unicode DNS names in urllib, urlopen

2015-03-13 Thread Demian Brecht
Changes by Demian Brecht : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue9679] unicode DNS names in urllib, urlopen

2015-03-13 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue9679] unicode DNS names in urllib, urlopen

2015-03-06 Thread John Nagle
John Nagle added the comment: Three years later, I'm converting to Python 3. Did this get fixed in Python 3? -- ___ Python tracker ___

[issue9679] unicode DNS names in urllib, urlopen

2013-07-05 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9679] unicode DNS names in urllib, urlopen

2012-06-16 Thread Florent Xicluna
Florent Xicluna added the comment: The werkzeug.urls module has examples of such conversion IRI-to-URI: https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/urls.py#L109,L205 -- ___ Python tracker ___

[issue9679] unicode DNS names in urllib, urlopen

2012-06-14 Thread R. David Murray
R. David Murray added the comment: As I said, patches to improve the situation are welcome, and if they match with current internet practices they will likely be accepted. It is still the case that such URLs are likely to require extra work on the part of the application to deal with the othe

[issue9679] unicode DNS names in urllib, urlopen

2012-06-13 Thread John Nagle
John Nagle added the comment: The current convention is that domains go into DNS lookup as punycode, and the port, query, and fragment fields of the URL are encoded with percent-escapes. See http://lists.w3.org/Archives/Public/ietf-http-wg/2011OctDec/0155.html Python needs to get with the p

[issue9679] unicode DNS names in urllib, urlopen

2012-06-13 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9679] unicode DNS names in urllib, urlopen

2012-06-13 Thread R. David Murray
R. David Murray added the comment: I doubt that unicode domain support in urllib would be of much use without full IRI support. I would think that a domain that uses unicode is highly likely to have URLs that use unicode. However that doesn't mean a patch along the lines you suggest would be

[issue9679] unicode DNS names in urllib, urlopen

2012-06-13 Thread John Nagle
John Nagle added the comment: A "IRI library" is not needed to fix this problem. It's already fixed in the sockets library and the http library. We just need consistency in urllib2. urllib2 functions which take a "url" parameter should apply "encodings.idna.ToASCII" to each label of the d

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
Changes by R. David Murray : -- keywords: -buildbot, patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
R. David Murray added the comment: There was a discussion about IRI on python-dev in the middle of a discussion about adding a coercable bytes type, but I can't find it. I believe the conclusion was that the best solution for IRI support was a new library that implements the full IRI spec. I

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: >From msg60564: it's not clear to me what this request really means. It could >mean that Python should support IRIs, but then, I'm not sure whether this >support can be in urllib, or whether a separate library would be needed. -- ___

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread Martin v . Löwis
New submission from Martin v. Löwis : Copy of issue 1027206; support in the socket module was provided, but this request remains: Also other modules should support unicode hostnames. (httplib already does) but urllib and urllib2 don't. -- components: Library (Lib), Unicode keywords: bu