[vlc-commits] url: test IDN to ASCII conversion

Rémi Denis-Courmont git at videolan.org
Wed Oct 19 14:56:11 CEST 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Oct 19 15:47:39 2016 +0300| [35f99efdac20cbc9049be9b28ca93bd8e3004ef1] | committer: Rémi Denis-Courmont

url: test IDN to ASCII conversion

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35f99efdac20cbc9049be9b28ca93bd8e3004ef1
---

 src/test/url.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/url.c b/src/test/url.c
index 01d18ce..fe72e94 100644
--- a/src/test/url.c
+++ b/src/test/url.c
@@ -261,8 +261,8 @@ int main (void)
     test_url_parse("p://h?o=v", "p", NULL, NULL, "h", 0, NULL, "o=v");
     test_url_parse("p://h:123?o=v", "p", NULL, NULL, "h", 123, NULL, "o=v");
     test_url_parse("p://u:p@h:123?o=v", "p", "u", "p", "h", 123, NULL, "o=v");
-    test_url_parse("p://white%20spaced", "p", NULL, NULL, "white%20spaced", 0,
-                   NULL, NULL);
+    test_url_parse("p://caf\xc3\xa9.example.com", "p", NULL, NULL,
+                   "xn--caf-dma.example.com", 0, NULL, NULL);
     test_url_parse("p://h/white%20spaced", "p", NULL, NULL, "h", 0,
                    "/white%20spaced", NULL);
     /* Relative URIs */



More information about the vlc-commits mailing list