tests: make sure non-ASCII chars in filenames are escaped when creating URIs from them

https://bugzilla.gnome.org/show_bug.cgi?id=654673
This commit is contained in:
Tim-Philipp Müller 2011-07-16 12:21:12 +01:00
parent 59441b36b6
commit 5164d5b5bf

View 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