Bugzilla – Bug 313456
We do not accept unicode escape chars for decls
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by bmaurer@users.sf.net 2003-12-23 14:53:09 MST ---- 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 ---- Additional Comments From bmaurer@users.sf.net 2003-12-23 15:43:48 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO52019 *** Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"