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

Tests for combination of + operator, percent-encoded value, and prefix modifier are missing #56

Open
lo48576 opened this issue Jul 30, 2022 · 1 comment

Comments

@lo48576
Copy link

lo48576 commented Jul 30, 2022

Consider expanding {+abcdef:5} with abcdef := "%61%62%63%64%65%66".
(And in similar way, {+invalid_utf8:2} with invalid_utf8 := %FF%FF%FF%FF.)
The spec (RFC 6570) is not so clear in what the result should be, and various implementations would produce different results, so this kind of inputs should be included to the test suite.

@lo48576
Copy link
Author

lo48576 commented Jul 30, 2022

By the way, I'm not sure but I think the expected result would be %61%62%63%64%65 (and %FF%FF).

Note that this numbering is in characters, not octets, in order to avoid splitting between the octets of a multi-octet-encoded character or within a pct-encoded triplet.

-- https://www.rfc-editor.org/rfc/rfc6570.html#section-2.4.1

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

No branches or pull requests

1 participant