classification
Title: IDNA prefix should be case insensitive
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Pepijn.de.Vos, ZackerySpytz, loewis
Priority: normal Keywords: patch

Created on 2013-09-24 15:20 by Pepijn.de.Vos, last changed 2021-05-22 17:27 by iritkatriel.

Files
File name Uploaded Description Edit
upper-idna.patch Pepijn.de.Vos, 2013-09-24 15:20 review
upper-idna.patch Pepijn.de.Vos, 2013-09-26 18:24 review
Pull Requests
URL Status Linked Edit
PR 17726 open ZackerySpytz, 2019-12-28 06:58
Messages (4)
msg198360 - (view) Author: Pepijn de Vos (Pepijn.de.Vos) * Date: 2013-09-24 15:20
RFC 3490 states that "The ACE prefix for IDNA is "xn--" or any capitalization thereof."

But the following does not work

>>> str(b"XN--pythn-mua.org.", "idna")
msg198437 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2013-09-26 11:21
Pepijn: Can you please submit the contributor form?

http://www.python.org/psf/contrib/contrib-form/
msg198438 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2013-09-26 12:08
Could you also add a test using a IDNA domain not starting with XN--, but with XN-- in the middle? Example:

self.assertEqual(str(b"bugs.XN--pythn-mua.org.", "idna"), "bugs.pyth\xf6n.org.")

And maybe also with mixed cases: Xn-- and xN-- prefixes.
msg198448 - (view) Author: Pepijn de Vos (Pepijn.de.Vos) * Date: 2013-09-26 18:24
Ok, I signed the agreement and included a few more tests.
History
Date User Action Args
2021-05-22 17:27:48iritkatrielsetversions: + Python 3.10, Python 3.11, - Python 3.7, Python 3.8
2020-01-15 21:33:35vstinnersetnosy: - vstinner
2019-12-28 06:59:15ZackerySpytzsetnosy: + ZackerySpytz

versions: + Python 3.7, Python 3.8, Python 3.9, - Python 3.4
2019-12-28 06:58:08ZackerySpytzsetstage: patch review
pull_requests: + pull_request17170
2013-09-26 18:24:12Pepijn.de.Vossetfiles: + upper-idna.patch

messages: + msg198448
2013-09-26 12:08:11vstinnersetmessages: + msg198438
2013-09-26 11:21:31loewissetmessages: + msg198437
2013-09-26 08:47:24pitrousetnosy: + loewis, vstinner
2013-09-25 11:51:14berker.peksagsetversions: + Python 3.4, - Python 3.5
2013-09-24 15:20:51Pepijn.de.Voscreate