[Issue 562] New: Source file without BOM starting with non-ASCII compiles and runs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 18 08:56:11 PST 2006
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 at digitalmars.com
ReportedBy: deewiant at 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.
--
More information about the Digitalmars-d-bugs
mailing list