From 89bb5a836c3a53dbbf88f4d61358f1d9475b2450 Mon Sep 17 00:00:00 2001 From: Jakub Zakrzewski Date: Sat, 6 Apr 2019 13:47:43 +0200 Subject: [PATCH] test: urlapi: urlencode characters above 0x7f correctly --- tests/libtest/lib1560.c | 4 ++++ 1 file changed, 4 insertions(+) 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/",