Mail Archives: cygwin/1998/06/26/22:23:22
Edward Avis wrote:
>
> [about the end-of-line CRLF vs LF problem]
>
> >Using CR-LF for end-of-line pre-dates both DOS and UNIX.
>
> It doesn't predate C, though.
>
> Or were there other systems that used \n as end-of-line and needed
> conversion to \r\n?
CR-LF comes from way back in the teletype days prior to any major
operating systems. The carriage-return returned the carriage to
the beginning of the line and the linefeed moved the paper up a line.
Most of us old-timers that used/maintained teletype equipment used
2 Cr's and 1 LF at the end of a line to ensure the carriage was
returned properly otherwise you got a big black letter at the end
of a line when the CR failed. Double spacing (2 LFs) also helped
reduce line overwrite problems.
The only use I can see for a CR these days is to do line overwrite
to a display screen. And even that can be done other ways. If
M$ had any sense, they would drop the CR and save a few terabytes
of space in the world for other things. :)
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles
/ ) /--< o // // http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_ Mailto:dbe AT wgn DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -