www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/24/09:37:16

To: davis AT amy DOT tch DOT harvard DOT edu ("John E. Davis")
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, eliz AT is DOT elta DOT co DOT il
Subject: Re: Line terms; UNIX v. DOS; opinions wanted (was: Info port...)
Date: Thu, 24 Mar 94 16:06:36 +0200
From: eliz AT is DOT elta DOT co DOT il

I wrote:

>> 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...

John E. Davis (davis AT amy DOT tch DOT harvard DOT edu) wrote:

> I am not so sure this is true.  Consider:
>  ...... to suspend press @ctrl{Z}.... @ctrl{M} is equivalent to RET.

Yep.  These two fellas break Info.  ^Z *is* EOF for text modes, and ^M gets
stripped.  But then how many GNU manuals use this?  I ran fgrep on all the
GNU docs directory (in which I store ALL the Info files I find ANYWHERE), and
didn't find any of them.  It is *ugly* practice after all, and GNU people are
*very* competent.  In fact, I didn't see ANY @ctrl command in the whole mass
of GNU Info files.

The complete solution will be, of course, to write your own read() and write().

Btw, the original Info in TX210BN.ZIP showed ^M thus generated as a Newline
(i.e., the line was broken in the middle), and Makeinfo produces ^ZZ and
^MM for these (i.e., the characters Z and M are written after their Ctrl-
counterparts).  Seems like bug to me.

	Eli Zaretskii.

- Raw text -


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