2008-03-12 Stephane Delcroix <sdelcroix@novell.com>
authorStephane Delcroix <stephane@mono-cvs.ximian.com>
Wed, 12 Mar 2008 09:08:53 +0000 (09:08 -0000)
committerStephane Delcroix <stephane@mono-cvs.ximian.com>
Wed, 12 Mar 2008 09:08:53 +0000 (09:08 -0000)
* UriTest.cs: test for bug #363320

svn path=/trunk/mcs/; revision=98029

mcs/class/System/Test/System/ChangeLog
mcs/class/System/Test/System/UriTest.cs

index e5c8074ab3f85285b13486cdf77799d493bf95a4..dddbbbb4312fe03eabbce81a59a527d19662423a 100644 (file)
@@ -1,3 +1,7 @@
+2008-03-12  Stephane Delcroix  <sdelcroix@novell.com>
+
+       * UriTest.cs: test for bug #363320
+
 2008-01-23  Robert Jordan  <robertj@gmx.net>
 
        * UriTest3.cs: Add tests for bug #346432.
index 13fb3f2c03b288999494a4f38d54047b3d9dd413..d5de77fbc5cb35e43d465e27d88bf945e0813775 100644 (file)
@@ -1625,6 +1625,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