[
Lists Home |
Date Index |
Thread Index
]
At 9:55 PM -0500 12/16/01, John Cowan wrote:
>Elliotte Rusty Harold scripsit:
>
>> That's simply not true. Text editors on various platforms routinely
>> and transparently recognize the \n, \r, and \r\n line ending
>> conventions.
>
>vi does not, nor does Emacs.
>
No, Emacs most certainly does accept all three line ending
conventions. I just tested it one more time and it had no trouble
whatsoever recognizing DOS and Mac files. It even put a little "DOS"
or "Mac" in the status bar to indicate what line ending convention
was being used.
I don't normally use vi, so I hadn't tested it before but I just did
and it transparently recognized the DOS file. It could not handle the
Mac file and displayed the the \r's as ^M. It couldn't handle NEL
either. Thise it displayed as ~E. I'm not sure what that means.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible, 2nd Edition (Hungry Minds, 2001) |
| http://www.ibiblio.org/xml/books/bible2/ |
| http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ |
+----------------------------------+---------------------------------+
|