From 5164d5b5bf20e6ba962e21abbf21de2f60a8c79f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 16 Jul 2011 12:21:12 +0100 Subject: [PATCH] tests: make sure non-ASCII chars in filenames are escaped when creating URIs from them https://bugzilla.gnome.org/show_bug.cgi?id=654673 --- tests/check/elements/filesrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/check/elements/filesrc.c b/tests/check/elements/filesrc.c index 970ca9a..d751acf 100644 --- a/tests/check/elements/filesrc.c +++ b/tests/check/elements/filesrc.c @@ -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 -- 2.7.4