Program logic bugs vs input/environmental errors

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 5 09:04:23 PDT 2014


On Sun, 5 Oct 2014 17:44:31 +0200
Marco Leise via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> From that I conclude, that File() should open files by ubyte[]
> exclusively to be POSIX compliant.
and yet there is currently no way in hell to open file with non-utf8
name with hardcoded name and without ugly hacks with File("..."). and
ubyte will not help here, as D has no way to represent non-utf8 string
literal without unmaintainable shit like "\xNN".

and speaking about utf-8: for strings we at least have a hack, and for
shebangs... nothing. nada. ничего. locale settings? other encodings? who
needs that, there CAN'T be non-utf8 shebangs. OS interoperability? it's
overhyped, there is only two kinds of OSes: those which are D-compatible
and bad. changing your locale to non-utf8 magically turns your OS to
bad, D will not try to interoperate with it anymore.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141005/90a91a51/attachment.sig>


More information about the Digitalmars-d mailing list