[Mono-bugs] [Bug 72166][Nor] Changed - Regex.Replace issue when replacement string contains backslashes

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 17 07:31:55 EDT 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 rharinath at novell.com.


--- shadow/72166	2005-05-23 01:24:35.000000000 -0400
+++ shadow/72166.tmp.17897	2006-04-17 07:31:55.000000000 -0400
@@ -1,12 +1,12 @@
 Bug#: 72166
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: NEW   
+Status: ASSIGNED   
 Severity: Unknown
 Priority: Normal
 Component: System
 AssignedTo: rharinath at novell.com                            
 ReportedBy: gert.driesen at pandora.be               
@@ -37,6 +37,19 @@
 Expected Result:
 \\ (double backslash)
 This works fine on MS.NET, and fails on both Mono 1.0.5 Windows/Linux and 
 Mono SVN head (Windows/Linux) with both ICU enabled and disabled.
+------- Additional Comments From rharinath at novell.com  2006-04-17 07:31 -------
+Hmm, this is a one-line fix, but I'll have to see why Jambu added it...
+2004-06-06  Jambunathan K <kjambunathan at novell.com>
+	* parser.cs: Fixed issues with Regex.Unescape() identified as part of
+	debugging bug #58256. The original problem reported was about
+	inconsistency between the way we treat replacement patterns and the 
+	way microsoft treats the replacement patterns in Regex.Replace(). MS
+	implementation is buggy and doesn't honour escape sequences in the
+	replacement patterns, even though the SDK claims otherwise.

More information about the mono-bugs mailing list