aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Zakrzewski <slither.jz@gmail.com>2019-04-06 13:47:43 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-04-07 22:57:42 +0200
commit89bb5a836c3a53dbbf88f4d61358f1d9475b2450 (patch)
treec08e7e21e9481ac822b01ae14b4f460d04ad9cf1
parent0dd47c2a3d53b1297be3534f8c09d3b86564d3db (diff)
test: urlapi: urlencode characters above 0x7f correctly
-rw-r--r--tests/libtest/lib1560.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c
index 7ae1025be..c57fe5830 100644
--- a/tests/libtest/lib1560.c
+++ b/tests/libtest/lib1560.c
@@ -419,6 +419,10 @@ static struct setcase set_parts_list[] = {
"scheme=https,host=foobar,path=/this /path /is /here,",
"https://foobar/this%20/path%20/is%20/here",
0, CURLU_URLENCODE, CURLUE_OK},
+ {NULL,
+ "scheme=https,host=foobar,path=\xc3\xa4\xc3\xb6\xc3\xbc,",
+ "https://foobar/%c3%a4%c3%b6%c3%bc",
+ 0, CURLU_URLENCODE, CURLUE_OK},
{"imap://user:secret;opt@host/",
"options=updated,scheme=imaps,password=p4ssw0rd,",
"imaps://user:p4ssw0rd;updated@host/",