Subject: Bug#3291: AE uses CR and LF

From: Bill Mitchell <[email-masked]>
Date: Thu, 13 Jun 1996 07:43:54 -0700 (PDT)

Michael Meskes <[email-masked]>
> When editing ae inserts both, CR and LF at the end of a line. This is MSDOS
> style but some UNIX commands don't like it. For instance I broke a line in
> a makefile and used '\' to make it continuous. However, make didn't accept
> it because the actual character was '\^M'.

That's not the behavior I see.

1.  When editing a new file or a unix-style text file, ae treats \n 
    line terminators as might be expected from a unix editor.

2.  When editing an existing file which has \r\n line terminators
    (e.g., a file produced by script(1)), ae uses \n line terminators
    for any added lines.  However, ae does not display the or treat the
    \r part of the \r\n line terminators already in the file in any way
    that would alert the user that they're there.  In fact, it seems
    to try to hide the fact that there are \r\n line terminators in
    the file from the user by attempting to handle both \n and \r\n
    line terminators appropriately.

Perhaps you're doing something different than I am.  Could you
let me know exactly how to duplicate this problem as you see it?
(To spare the list the noise on this, it'd probably be best to
Cc: [email-masked] instead of bugs.debian.org).

I think it might be useful to have ae treat the \r part of a \r\n
line terminator just like it treats \r chars encountered elsewhere
(i.e., display them as "^M", and treat them as unrecognized control
chars).  Comments?

I'll try to find time to look into this.

---

From: Bill Mitchell <[email-masked]>
Date: Fri, 14 Jun 1996 09:54:41 -0700 (PDT)

When I tested this yesterday, I was using an older version of ae,
and didn't see the problem.  It turns out that the ae-962-6 change
to work around the problem with the new ncurses introduced this
problem by turning off ICRNL when putting the terminal into raw mode.
I've just uploaded ae-962-7 to master, which should fix this by
turning ICRNL back on and putting the terminal into a half-baked
mode.

ae-962-7 needs to go into the distribution and onto the install disks.