lib1560: use hex notation, drop non-ASCII exception

Closes #17334
This commit is contained in:
Viktor Szakats 2025-05-13 10:35:26 +02:00
parent 11cad7bf32
commit e270881a5d
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 13 additions and 4 deletions

View file

@ -68,7 +68,6 @@ my @non_ascii = (
"docs/CIPHERS.md",
"docs/THANKS",
"docs/THANKS-filter",
"tests/libtest/lib1560.c",
);
sub fn_match {

View file

@ -213,11 +213,21 @@ static const struct testcase get_parts_list[] ={
"https | [11] | [12] | [13] | [30] | [15] | / | [16] | [17]",
0, CURLU_PUNYCODE, CURLUE_OK},
#endif
/* https://ℂᵤⓇℒ。𝐒🄴 */
/*
https://codepoints.net/U+2102 Double-Struck Capital C
https://codepoints.net/U+1d64 Latin Subscript Small Letter U
https://codepoints.net/U+24c7 Circled Latin Capital Letter R
https://codepoints.net/U+2112 Script Capital L
https://codepoints.net/U+3002 Ideographic Full Stop
https://codepoints.net/U+1d412 Mathematical Bold Capital S
https://codepoints.net/U+1f134 Squared Latin Capital Letter E
*/
{"https://"
"%e2%84%82%e1%b5%a4%e2%93%87%e2%84%92%e3%80%82%f0%9d%90%92%f0%9f%84%b4",
"https | [11] | [12] | [13] | ℂᵤⓇℒ。𝐒🄴 | [15] |"
" / | [16] | [17]",
"https | [11] | [12] | [13] | "
"\xe2\x84\x82\xe1\xb5\xa4\xe2\x93\x87\xe2\x84\x92"
"\xe3\x80\x82\xf0\x9d\x90\x92\xf0\x9f\x84\xb4"
" | [15] | / | [16] | [17]",
0, 0, CURLUE_OK},
{"https://"
"%e2%84%82%e1%b5%a4%e2%93%87%e2%84%92%e3%80%82%f0%9d%90%92%f0%9f%84%b4",