Re: Linefeeds

[prev] [thread] [next] [lurker] [Date index for 2005/06/22]

From: Michael G Schwern
Subject: Re: Linefeeds
Date: 02:21 on 22 Jun 2005
On Mon, Jun 20, 2005 at 11:17:26AM -0400, Dave Vandervies wrote:
> The OP indicates that apparently not even all unix systems are unix in
> this respect anymore...

OS X is a bit schitzoid in that the Aqua things use the Mac newline (carriage
return, 015) and the Unixy things use the Unix newline (012).  They generally
do a decent job interacting with each other but vim and XEmacs need to get 
a clue.  vim at least tries to take a stab at auto-detecting what newline
style is being used but it thinks a file with mac newlines is a DOS formatted 
file (015 012).  They couldn't go that extra inch to see if the 015 is followed
by a 012.  XEmacs doesn't even try at all... at least I haven't found the 
variable to flip to make it try.

Oddly enough I haven't had an issue lately with transfering text around
between different machines.  I guess after 10 years of fairly ubiquitous
Interneting things are finally learning how to play nice with others.


-- 
Michael G Schwern     schwern@xxxxx.xxx     http://www.pobox.com/~schwern
Just call me 'Moron Sugar'.
	http://www.somethingpositive.net/sp05182002.shtml
There's stuff above here

Generated at 00:00 on 28 Jun 2005 by mariachi 0.52