Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[idna] Add unit tests for punycode prefix edge cases #374

Closed
wants to merge 1 commit into from

Conversation

behnam
Copy link
Contributor

@behnam behnam commented Jul 3, 2017

Helps with answering question asked in
#373

The test invariants here are based on and checked against:


This change is Reviewable

Helps with answering question asked in
servo#373

The test invariants here are based on and checked against:

* Processing Step 4 of UTS#46
  (<http://www.unicode.org/reports/tr46/#ProcessingStepPunycode>)

* 6.2 Decoding procedure of Punycode RFC.
  (<https://ietf.org/rfc/rfc3492.txt>)
@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #517) made this pull request unmergeable. Please resolve the merge conflicts.

@djc
Copy link
Contributor

djc commented Jul 14, 2020

This would be good to have, though it'll have to be rebased on current master.

@djc
Copy link
Contributor

djc commented Aug 20, 2020

I rebased this, but the tests for config.to_ascii("xn-----") no longer pass. I'll investigate further.

@annevk
Copy link

annevk commented Aug 25, 2020

The reason they don't pass (i.e., no longer expect an error) is probably because CheckHyphens is set to false. Having said that, it's pretty clear the URL Standard algorithm for IDNA has issues as well as browsers are not fully aligned with it: https://github.com/whatwg/url/labels/topic%3A%20idna.

@djc
Copy link
Contributor

djc commented Aug 25, 2020

@annevk thanks for the hint! I've rebased this as 4c1be65 and merged it. @behnam thanks for working on this.

@djc djc closed this Aug 25, 2020
@behnam behnam deleted the xn-- branch September 28, 2020 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants