[Issue 13512] dmd cannot compile perfectly valid code with shebang

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Sep 20 18:28:33 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13512

Ketmar Dark <ketmar at ketmar.no-ip.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ketmar at ketmar.no-ip.org

--- Comment #2 from Ketmar Dark <ketmar at ketmar.no-ip.org> ---
(In reply to Vladimir Panteleev from comment #1)
> OMG, someone still uses KOI-8?
yes, it's me. ;-)

> This is probably a WONTFIX because it conflicts with the D spec. DMD does
> not allow invalid UTF-8 even in comments, because Unicode conversion is done
> as a separate step from the lexer/tokenizer.
actually, it's a very simple patch to lexer (i already did that). but if dmd
forbids a perfectly valid shebang… well, i'm sure that D is not in the position
to change existing standards. if dmd can't compile valid code… it's not a bug
in users' locale, it's THE bug in dmd. let's redefine POSIX then, POSIX is not
cool. let's dictate what usernames are allowed. let's dictate what pathes are
allowed. and so on. D über alles, fsck standards!

--


More information about the Digitalmars-d-bugs mailing list