digitalmars.D.bugs - [Issue 562] New: Source file without BOM starting with non-ASCII compiles and runs
- d-bugmail puremagic.com (29/29) Nov 18 2006 http://d.puremagic.com/issues/show_bug.cgi?id=562
- d-bugmail puremagic.com (9/9) Dec 03 2006 http://d.puremagic.com/issues/show_bug.cgi?id=562
http://d.puremagic.com/issues/show_bug.cgi?id=562 Summary: Source file without BOM starting with non-ASCII compiles and runs Product: D Version: 0.174 Platform: PC URL: http://www.digitalmars.com/d/lex.html OS/Version: Windows Status: NEW Keywords: spec Severity: normal Priority: P4 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: deewiant gmail.com OtherBugsDependingO 511 nThis: Ä ä; class Ä { } void main() { } The above, encoded as UTF-8 without a BOM, compiles and runs just fine even though the spec claims that "[i]f the source file does not start with a BOM, then the first character must be less than or equal to U0000007F" which the "Ä" character is not. I'm not sure this is a useful limitation, and since it's not taken into account by DMD it might as well be removed, in my opinion. --
Nov 18 2006
http://d.puremagic.com/issues/show_bug.cgi?id=562 deewiant gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED DMD behaviour corrected in DMD 0.176. --
Dec 03 2006