[DGD] Latest errors

Felix A. Croes felix at dworkin.nl
Mon Apr 16 13:41:15 CEST 2012


Shentino <shentino at gmail.com> wrote:
> I meant allowing the parse_string kfun to accept either CR, CRLF, or
> LF as line separators in the grammar argument.

It would not be as bad as hacking DGD to translate CRLF into LF in
read_file().  But handling CRLF "automagically" never works completely
right, not even on Windows, where you cannot distinguish between
"Foo\r\n" as text and as a binary string.  In my view, DGD should be
able to make the distinction; I especially object to breaking this on
other platforms for the sake of misguided Windows compatibility.

Better to accept the discipline of using LF for line endings even on
Windows.

Regards,
Felix Croes



More information about the DGD mailing list