On Saturday 29 December 2007 13:57, Fred Cisin wrote:
On Sat, 29 Dec 2007 tiggerlasv at
aim.com wrote:
It looks like the carriage returns were stripped
out somehow.
One of the recurring issues of ASCII is:
"What is the ASCII code for newline?"
Is a new line CR (carriage return)?
Yeah, on a mac.
LF (linefeed)?
Yeah, on unix/linux boxes.
CR LF?
On most dos boxes.
LF CR?
Not that I've ever seen, the CR usually being sent first because if it's any
kinda mechanical thingy it takes longer.
Is '\n' 0Dh? 0Ah? 0Dh 0Ah? 0Ah 0Dh?
I remember back when I first started fiddling with c programming having to use
\n\r in some instances to get what I wanted.
Before you answer, contemplate: "Why have SO MANY
companies got that wrong?"
("wrong" actually means any choice other than yours, and each company
thought that there were good reasons for doing it their way.)
I always thought it'd be kinda nifty to have one character instead of two.
For example,
TRS80 was 0Dh; IBM PC was 0Dh 0Ah
made for lots of extra fun when interchanging printers, and resulted in
many printers having "auto linefeed".
I remember well one Tandy printer that double-spaced lines and there didn't
seem to be any way to disable that "feature".
--
Member of the toughest, meanest, deadliest, most unrelenting -- and
ablest -- form of life in this section of space, ?a critter that can
be killed but can't be tamed. ?--Robert A. Heinlein, "The Puppet Masters"
-
Information is more dangerous than cannon to a society ruled by lies. --James
M Dakin