Bug 313456 (MONO52509) - We do not accept unicode escape chars for decls
Summary: We do not accept unicode escape chars for decls
Status: RESOLVED MOVED
Alias: MONO52509
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-23 21:53 UTC by Ben Maurer
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:22:51 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"