[Mono-bugs] [Bug 52509][Wis] New - We do not accept unicode escape chars for decls

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 23 Dec 2003 14:53:10 -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 bmaurer@users.sf.net.

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

--- shadow/52509	2003-12-23 14:53:10.000000000 -0500
+++ shadow/52509.tmp.5154	2003-12-23 14:53:10.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 52509
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: We do not accept unicode escape chars for decls
+
+From the ECMA spec 2.4.1 Unicode character escape sequences
+
+A Unicode character escape sequence represents a Unicode character. 
+Unicode character escape sequences are processed in identifiers (Section 
+2.4.2), character literals (Section 2.4.4.4), and regular string literals 
+(Section 2.4.4.5). A Unicode character escape is not processed in any 
+other location (for example, to form an operator, punctuator, or keyword). 
+
+We do not compile a modified version of the example in this section
+
+class Class1
+{
+	static void Main () 
+	{
+		char c = '\u0066';
+		bool \u0066 = true;
+
+		if (\u0066)
+			System.Console.WriteLine(c.ToString());
+	}      
+}
+
+csc compiles, when run the program prints
+f