[Mono-bugs] [Bug 52283][Nor] Changed - String.StartsWith(String.Empty) throws ArgumentOutOfRangeException

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 17 Dec 2003 08:55:04 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by pcgod@gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=52283

--- shadow/52283	2003-12-17 08:51:26.000000000 -0500
+++ shadow/52283.tmp.12586	2003-12-17 08:55:04.000000000 -0500
@@ -1,14 +1,14 @@
 Bug#: 52283
 Product: Mono/Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: cygwin on WinXP
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: ginga@kit.hi-ho.ne.jp               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -79,6 +79,14 @@
                         }
 
 ------- Additional Comments From pcgod@gmx.net  2003-12-17 08:51 -------
 Created an attachment (id=6268)
 proposed patch
 
+
+------- Additional Comments From pcgod@gmx.net  2003-12-17 08:55 -------
+the first patch proposed patch would only fix the problem for 
+String.StartsWith but the real problem is in CompareInfo.Compare (try 
+CultureInfo.CurrentCulture.CompareInfo.Compare("foo", 0, "", 0)), but 
+i'm not sure that my patch doesn't cause any other side effects... 
+(the stringtests in cvs success with it and it fixes the testcase 
+above)