[Mono-bugs] [Bug 58256][Wis] New - Replace Doesn't Replace ' Correctly

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 10 May 2004 02:33:37 -0400 (EDT)


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 kevinbe71mono@yahoo.com.

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

--- shadow/58256	2004-05-10 02:33:37.000000000 -0400
+++ shadow/58256.tmp.28366	2004-05-10 02:33:37.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 58256
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: Redhat Linux 9.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: kevinbe71mono@yahoo.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Replace Doesn't Replace ' Correctly
+
+Description of Problem:
+Regex.Replace(sValue, "'", "\\'") does not work correctly.
+
+Steps to reproduce the problem:
+1. Add the following code to a C# ASPX file:
+    string sValue;
+    sValue = "is this or isn't this correct?";
+    sValue = Regex.Replace(sValue, "'", "\\'");
+    Response.Write(sValue);
+2. Run ASPX under Mono and .NET
+3. Verify differing results (as below)
+
+Actual Results:
+   Mono:  is this or isn\t this correct?
+
+Expected Results:
+   .NET:  is this or isn\'t this correct?
+
+How often does this happen? 
+This is consistent- it occurs every time under Mono.