x/net/idna: support label separators other than ASCII dot #19603
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
Passed a string
"example\u3002jp"
toToASCII()
.What did you expect to see?
The return value is
"example.jp"
What did you see instead?
The return value was
"xn--examplejp-ck3h"
https://tools.ietf.org/html/rfc3490#section-3.1
I created a fix and add test cases at hnakamur/net@bd2fe13
I also followed the steps at Contribution Guide - The Go Programming Language and am ready to run
git mail
if this fix looks good to reviewers.Thanks!
The text was updated successfully, but these errors were encountered: