Mail Archives: djgpp/1994/03/24/04:35:33
> 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 -