CVSROOT: /cvsroot/dotgnu-pnet
Module name: pnetlib
Changes by: Klaus Treichel <ktreichel> 09/04/19 10:25:28
Modified files:
. : ChangeLog
runtime/System : String.cs
Log message:
Fix bug #26227 (really Thomas Uxiou)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2582&r2=1.2583
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/String.cs?cvsroot=dotgnu-pnet&r1=1.47&r2=1.48
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2582
retrieving revision 1.2583
diff -u -b -r1.2582 -r1.2583
--- ChangeLog 19 Apr 2009 09:44:18 -0000 1.2582
+++ ChangeLog 19 Apr 2009 10:25:27 -0000 1.2583
@@ -1,3 +1,8 @@
+2009-04-19 Thomas Uxiou <[email protected]>
+
+ * runtime/System/String.cs (Split(count)): Return an empty string array
+ if count is 0. (bug #26227)
+
2009-04-19 Klaus Treichel <[email protected]>
* Basic/FileSystem.cs (FilePutObject): Fix the DefaulValueAttribute.
Index: runtime/System/String.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/String.cs,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -b -r1.47 -r1.48
--- runtime/System/String.cs 19 Apr 2009 09:44:19 -0000 1.47
+++ runtime/System/String.cs 19 Apr 2009 10:25:27 -0000 1.48
@@ -1397,10 +1397,8 @@
}
else if(count == 0)
{
- // Return the entire string in a
single-element array.
- array = new String [1];
- array[0] = this;
- return array;
+ // Return an empty string array
+ return new String[0];
}
// Count the number of sub-strings.
_______________________________________________
dotgnu-pnet-commits mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/dotgnu-pnet-commits