[Mono-bugs] [Bug 24248] New - String.Replace bug

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
5 May 2002 15:48:47 -0000


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 loz@cable.a2000.nl.

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

--- shadow/24248	Sun May  5 11:48:47 2002
+++ shadow/24248.tmp.14115	Sun May  5 11:48:47 2002
@@ -0,0 +1,41 @@
+Bug#: 24248
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: W2K
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: loz@cable.a2000.nl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: String.Replace bug
+
+public class T11
+{
+	public static void Main ()
+	{
+		string ip = "::";
+		ip = ip.Replace ("::", ":!:");		
+		System.Console.WriteLine (ip);
+        }
+}
+
+
+prints:
+
+  :!
+
+instead of:
+
+  :!:
+
+
+
+Greets,
+Lawrence