[Mono-bugs] [Bug 77412][Maj] Changed - String.LastIndexOf returns -1 when the search string is the entire main string

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 30 22:34:59 EST 2006


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 atsushi at ximian.com.

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

--- shadow/77412	2006-01-30 18:34:47.000000000 -0500
+++ shadow/77412.tmp.5222	2006-01-30 22:34:59.000000000 -0500
@@ -2,16 +2,16 @@
 Product: Mono: Class Libraries
 Version: 1.1
 OS: NLD 9
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: CORLIB
-AssignedTo: mono-bugs at ximian.com                            
+AssignedTo: atsushi at ximian.com                            
 ReportedBy: NLassonde at Versora.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
 Summary: String.LastIndexOf returns -1 when the search string is the entire main string
@@ -54,6 +54,18 @@
  
 Expected Results: 
   
 text="test123" 
 text.IndexOf("test123")=0 
 text.LastIndexOf("test123")=0
+
+------- Additional Comments From atsushi at ximian.com  2006-01-30 22:34 -------
+Seems like we need a fix on System.String (not in CompareInfo).
+
+. . ENTER: System.String:LastIndexOf
+(string)(this:[STRING:01516FE0:test123], [STRING:01516FE0:test123], )
+. . . ENTER: System.String:LastIndexOf
+(string,int,int)(this:[STRING:01516FE0:test123],
+[STRING:01516FE0:test123], 6, 7, )
+. . . LEAVE: System.String:LastIndexOf (string,int,int)result=-1
+. . LEAVE: System.String:LastIndexOf (string)result=-1
+


More information about the mono-bugs mailing list