]> granicus.if.org Git - curl/commitdiff
test: urlapi: urlencode characters above 0x7f correctly
authorJakub Zakrzewski <slither.jz@gmail.com>
Sat, 6 Apr 2019 11:47:43 +0000 (13:47 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 7 Apr 2019 20:57:42 +0000 (22:57 +0200)
tests/libtest/lib1560.c

index 7ae1025be93557f23c06fe33ab9770ca8dac997d..c57fe583031c7c9b3004b67370449e01184e8288 100644 (file)
@@ -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/",