[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1 |
Date: |
Fri, 27 Feb 2015 13:45:25 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi Eli.
> > This is a separate issue from 32/64 windows/not-windows. This occurs
> > because some of the gawk code understands CR-LF files and some of it
> > does not. The source code patch below fixes the problem, so it will be
> > fixed "for real" when I release 4.1.2.
>
> What will happen with that fix if you have a lone \r character?
It will be eaten. But that's rare. I'm not worried.
> And anyway, Gawk by default reads in text mode, so the \r\n pairs
> should be seen as a single \n character. Are you sure this is the
> cause of the problem?
If I create a source file on Linux with CR-LF line endings, I get the
same symptoms as reported.
Scott used who-knows-what compiled version, so maybe it wasn't built
correctly.
I think the fix does good and shouldn't do harm.
Thanks,
Arnold