svn path=/trunk/mcs/; revision=104772
[mono.git] / mcs / class / System / Test / System / UriTest.cs
index bb17e6b58cea00dcedce2024cf800939b8b6de2c..5dce5632ebd4cfa3278eb4f3570db93d7aa959ef 100644 (file)
@@ -1634,6 +1634,18 @@ namespace MonoTests.System
                }
 #endif
 
+               //bnc #363320
+               [Test]
+               public void TestUTF8Strings ()
+               {
+                       string [] tests = {
+                               "file:///tmp/x (%232).jpg",
+                               "file:///tmp/ΓΌ (%232).jpg" };
+
+                       foreach (string test in tests)
+                               AssertEquals (test, new Uri (test).ToString ());
+               }
+
                // This test doesn't work on Linux, and arguably shouldn't work.
                // new Uri("file:///tmp/foo/bar").AbsolutePath returns "/tmp/foo/bar" 
                // on Linux, as anyone sane would expect.  It *doesn't* under .NET 1.1