tests: make sure non-ASCII chars in filenames are escaped when creating URIs from...
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Jul 2011 11:21:12 +0000 (12:21 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sat, 16 Jul 2011 11:24:01 +0000 (12:24 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=654673

tests/check/elements/filesrc.c

index 970ca9a..d751acf 100644 (file)
@@ -437,6 +437,9 @@ GST_START_TEST (test_uri_query)
     check_uri_for_location (src, "./foo", NULL);
     check_uri_for_location (src, "../foo", NULL);
     check_uri_for_location (src, "foo/./bar", NULL);
+    /* make sure non-ASCII characters are escaped properly (U+00F6 here) */
+    check_uri_for_location (src, "/i/./d\303\266/not/../exist",
+        "file:///i/d%C3%B6/exist");
   }
 #endif