Mail Archives: djgpp/1994/03/24/04:35:33

Date: Thu, 24 Mar 1994 03:44:30 -0500
From: davis AT amy DOT tch DOT harvard DOT edu ("John E. Davis")
To: dj AT ctron DOT com, eliz AT is DOT elta DOT co DOT il
Subject: Re: Line terms; UNIX v. DOS; opinions wanted (was: Info port...)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>  That's the whole point: when you read() files in ``text'' mode, you don't
>have to be ``smart'': things automagically get settled for you.  The only
>gotcha is: never ever take the file size from stat().  That's the only *real*

I am not so sure that this is true.  Consider:

    .... to suspend press @ctrl{Z}.... @ctrl{M} is equivalent to RET.
As I recall, makeinfo will insert convert these to literal ^Z and ^M
characters.  I seem to remember that BCC striped lines containing ^M in the
middle of a line in text mode.  Also, does text mode regard ^Z as an end of
file character?

For JED, I wrote my own text mode. I open the file in binary mode and simply
strip ^M characters if they preceed ^J ones.  I regard ^Z as a valid
character. In other words, JED can handle lines like one above but it
required rewriting the file i/o stuff.  Hmmm... I cannot remember what I did
for the DJGPP version.  It might have the problem that I described above; I
will look into it tomorrow.

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019