Macs use cr as eol
Sent from my Verizon Wireless Phone
----- Reply message -----
From: "Steve F�bi�" <>
Date: Sat, Jul 10, 2010 2:03 pm
Subject: [Support-t-2150] @clip peculiarity
To: <
[email protected]>
| What if you have CR/CR/LF/CR/CR/CR? Is the *real* line ending a
| CR/LF, or is it CR with a random LF thrown in?
|
| The only way to handle this consistently would be to forbid all line
| endings except CR/LF; I think that's a bit draconian to handle the
| one instance in 20 years where somebody's complained about @CLIP's
| GIGO.
IMHO the best way to handle it is not to consider CR as EOL. This would
be consistent with its purpose in ASCII as a "format effector" moving the
cursor to the beginning of the current line, allowing overprinting (as does
BS). Only the LF, FF, and VT characters put you into a different line.
Furthermore, technically none of those mean column change, hence the CR/LF
sequence. There is also a now obsolete technical reason why the order is CR
LF, not LF CR. AFAIK no system other than the Trash-80 (oops, I meant
TRS-80) ever abused CR to mean EOL.
--
Steve