[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1
From: |
Eli Zaretskii |
Subject: |
Re: [bug-gawk] Continuation Character not recognized in GAWK 4.1 |
Date: |
Tue, 24 Feb 2015 22:21:28 +0200 |
> From: Aharon Robbins <address@hidden>
> Date: Tue, 24 Feb 2015 22:01:52 +0200
>
> > awk: test:2: printf("Hello \
> > awk: test:2: ^ unterminated string
> > awk: test:2: printf("Hello \
> > awk: test:2: ^ syntax error
>
> 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?
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?