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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Sep 20 20:21:40 PDT 2014


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

hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx

--- Comment #5 from hsteoh at quickfur.ath.cx ---
Actually, a deeper underlying issue that is being assumed, not just by dmd but
by much of druntime/phobos that interfaces with the outside world, is that
system-level things like filenames are UTF-8 encoded. While it's perfectly fine
to do everything only in Unicode internally in D programs, this ultimately
unfounded assumption can cause problems, e.g., if the filesystem uses a
non-utf8 encoding, or if the program is (hypothetically) running on an EBCDIC
machine, or if the D program has to interface with non-Unicode legacy programs.
For example, writeln assumes the target terminal understands utf8, which may
not necessarily be true.

--


More information about the Digitalmars-d-bugs mailing list