[Mono-bugs] [Bug 36209][Nor] New - Format Strings containing "}" are not handled properly
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
1 Jan 2003 02:43:27 -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 jonpryor@vt.edu.
http://bugzilla.ximian.com/show_bug.cgi?id=36209
--- shadow/36209 Tue Dec 31 21:43:27 2002
+++ shadow/36209.tmp.21559 Tue Dec 31 21:43:27 2002
@@ -0,0 +1,49 @@
+Bug#: 36209
+Product: Mono/Class Libraries
+Version: unspecified
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: jonpryor@vt.edu
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Format Strings containing "}" are not handled properly
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Format strings (strings used as a format to Console.WriteLine and
+String.Format) do not handle "}" (close brace) properly.
+
+In particular, a single closing brace is not valid, just as a single
+opening brace is not valid. Two closing braces are needed (conceptually
+the first closing brace "escapes" the second, so "}}" prints a single close
+brace, just as "{{" prints a single open brace).
+
+Steps to reproduce the problem:
+1. Compile the attached source code ("braces.cs")
+2. Run it.
+
+Actual Results:
+
+Actual results are attached as "braces-mono-output.txt". Note that the
+format string "}" doesn't through an exception, while it does under .NET
+(see "braces-clr-output.txt").
+
+Expected Results:
+
+A System.FormatException would be thrown.
+
+How often does this happen?
+
+Always.
+
+Additional Information: