2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 9 May 2005 02:42:50 +0000 (02:42 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Mon, 9 May 2005 02:42:50 +0000 (02:42 -0000)
* Uri.cs:
(EscapeString): no need to turn the string into a char[] when calling
GetBytes.

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

mcs/class/System/System/ChangeLog
mcs/class/System/System/Uri.cs

index d9984dd2c5c620a5db8439bf402b38c13c479321..920b7cbfc2f542e9172c5503607035473aa25ee5 100644 (file)
@@ -1,3 +1,9 @@
+2005-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Uri.cs:
+       (EscapeString): no need to turn the string into a char[] when calling
+       GetBytes.
+
 2005-03-20 Joshua Tauberer <tauberer@for.net>
 
        * Uri.cs: Some pedantic changes to the text of a few exceptions.
index 5cea2f490aac13b477db5a25dd7e5a3f193ccca9..fa8ce61693ff0d4297a933e8a2de7d1976f250cc 100755 (executable)
@@ -771,7 +771,7 @@ namespace System
                        if (str == null)
                                return String.Empty;
                        
-                       byte [] data = Encoding.UTF8.GetBytes (str.ToCharArray ());
+                       byte [] data = Encoding.UTF8.GetBytes (str);
                        StringBuilder s = new StringBuilder ();
                        int len = data.Length;  
                        for (int i = 0; i < len; i++) {