[Mono-bugs] [Bug 72123][Wis] New - String IndexOfLast is broken for some input strings

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Feb 2005 10:55:09 -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 junk@roscohill.com.

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

--- shadow/72123	2005-02-02 10:55:09.000000000 -0500
+++ shadow/72123.tmp.2406	2005-02-02 10:55:09.000000000 -0500
@@ -0,0 +1,41 @@
+Bug#: 72123
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: RedHat / Mono 1.05
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: junk@roscohill.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: String IndexOfLast is broken for some input strings
+
+Description of Problem:
+String.IndexOfLast produces the wrong result in Mono. The .Net runtime
+works fine.
+
+Steps to reproduce the problem:
+1.test the attached code. I am compiling with Visual Studio.Net and running
+on Mono 1.05 / RedHat
+
+Actual Results:
+string test_works = "foo::foo::foo";
+string test_broken= "foo::foo::bar";
+int index1=test_works.LastIndexOf("::");
+int index2=test_broken.LastIndexOf("::");
+
+Expected Results:
+index1==index2
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+The corelib stuff looks fine, the error might be occuring in the external
+function "internal_index" which gets called deeper in the string compare.