Author: gonzalo
Date: 2005-05-08 22:42:50 -0400 (Sun, 08 May 2005)
New Revision: 44236

Modified:
   trunk/mcs/class/System/System/ChangeLog
   trunk/mcs/class/System/System/Uri.cs
Log:
2005-05-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Uri.cs:
        (EscapeString): no need to turn the string into a char[] when calling
        GetBytes.



Modified: trunk/mcs/class/System/System/ChangeLog
===================================================================
--- trunk/mcs/class/System/System/ChangeLog     2005-05-09 02:27:46 UTC (rev 
44235)
+++ trunk/mcs/class/System/System/ChangeLog     2005-05-09 02:42:50 UTC (rev 
44236)
@@ -1,3 +1,9 @@
+2005-05-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Uri.cs:
+       (EscapeString): no need to turn the string into a char[] when calling
+       GetBytes.
+
 2005-03-20 Joshua Tauberer <[EMAIL PROTECTED]>
 
        * Uri.cs: Some pedantic changes to the text of a few exceptions.

Modified: trunk/mcs/class/System/System/Uri.cs
===================================================================
--- trunk/mcs/class/System/System/Uri.cs        2005-05-09 02:27:46 UTC (rev 
44235)
+++ trunk/mcs/class/System/System/Uri.cs        2005-05-09 02:42:50 UTC (rev 
44236)
@@ -771,7 +771,7 @@
                        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++) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to