[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: carriage return line endings vs. literal ^M in status.m4
From: |
Ralf Wildenhues |
Subject: |
Re: carriage return line endings vs. literal ^M in status.m4 |
Date: |
Sat, 5 Apr 2008 14:54:22 +0200 |
User-agent: |
Mutt/1.5.17+20080114 (2008-01-14) |
* Jim Meyering wrote on Sat, Apr 05, 2008 at 02:45:45PM CEST:
> Eric Blake <address@hidden> wrote:
> >
> > If CR is _not_ the EOL marker, then how would CR appear at the end of the
> > line? Where are we doing input into $tmp/subs1.awk that could create a
> > spurious CR if the platform does not use CR? And if CR is not EOL, then
> > do we really need to escape intermediate CR rather than treating it as a
> > literal character?
>
> Before writing the patch, I wondered about that too, and did a little
> archaeology, but didn't find any good rationale, though I didn't look
> very hard.
As I already noted, the aim was to allow users to substitute CR
(in packages that may not have to be portable to BeOS, MinGW).
> > And according to this patch, if CR _is_ the EOL marker, then just
> > using mv works. So why not use mv unconditionally?
Well, rather than using mv unconditionally one could then just forget
about subs1.awk completely, and create subs.awk directly. But I would
not like to go that way, at this point.
> Assuming the existing CR-conversion code (not just for EOL markers) was
> necessary, I thought it best to minimize changes for the common EOL==NL case.
Yep, thanks.
Cheers,
Ralf
- carriage return line endings vs. literal ^M in status.m4, Jim Meyering, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Ralf Wildenhues, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Ralf Wildenhues, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Ralf Wildenhues, 2008/04/05
- Working os/2 configuratie, Elbert Pol, 2008/04/05
- Re: Working os/2 configuratie, Eric Blake, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Jim Meyering, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Ralf Wildenhues, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Jim Meyering, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Ralf Wildenhues, 2008/04/05
- Re: carriage return line endings vs. literal ^M in status.m4, Jim Meyering, 2008/04/05