Am 11.12.2020 um 19:05 schrieb Allin Cottrell:
On Fri, 11 Dec 2020, Sven Schreiber wrote:
> I think I'm experiencing a small glitch with gretl's handling of
> cross-platform line endings on Windows when printing to a file.
>
> Consider this:
>
> <hansl>
>
> s = readfile("test.txt") # this file is attached
> set verbose off
> outfile test2.inp # this is also attached
> print s
> end outfile
>
> </hansl>
>
> The newlines in test.txt are Windows-style CRLF.
Heh, actually they're not (in the attachment).
I see that in the attachment, too - but this must be the result of some
conversion in the email transfer process (maybe already in my email
program, don't know). I'm relatively sure that when I attached the file
it was like I described.
Perhaps somebody else could test on Windows with a self-created file
with CR+LF newlines.
BTW, I also observed that the display/printing of the string within
gretl in the output window was fine. The phenomenon only occurred when
saving to a file.
thanks
sven