Mail Archives: djgpp/1994/03/24/09:37:16
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 -