🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #24686

Re: Question about CR/LF and end-of-lines.

#24686
From: braner
Date: Sat, 31 Jan 1987 05:33
19 lines
1492 bytes
[]

Standard files on the ST end each line with a CR and then also a LF.
So does MS-DOS, as far as I know.  UNIX uses just a LF, without a CR.
My version of microEMACS has many sections that go like:
	#if AtST
		...
	#else		/* UNIX */
		...
	#endif
and one of the differences is just those line ends.  BUT - it will read
a file right either way, so if you have a UNIX file on the ST you can fix
it by reading it into umacs and then writing it.  The report of file length
inside umacs is also adjusted to reflect the space it will take on the
disk when saved, on that system.  Note: that's MY version of umacs, not
to be confused with 3.7 and the like, which are separate branches on the
tree of evolution of David Conroy's original program.

- Moshe Braner
Technical Details
Message-ID: <2163@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!sri-spam!sri-unix!hplabs!decwrl!decvax!tektronix!uw-beaver!cornell!batcomputer!braner
References: <8701272118.AA01023@yale-eli.YALE.ARPA> <823@imagen.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!rutgers!sri-spam!sri-unix!hplabs!decwrl!decvax!tektronix!uw-beaver!cornell!batcomputer!braner
From: braner@batcomputer.UUCP
Newsgroups: comp.sys.atari.st
Subject: Re: Question about CR/LF and end-of-lines.
Message-ID: <2163@batcomputer.tn.cornell.edu>
Date: Sat, 31-Jan-87 00:33:33 EST
Article-I.D.: batcompu.2163
Posted: Sat Jan 31 00:33:33 1987
Date-Received: Sun, 1-Feb-87 12:17:59 EST
References: <8701272118.AA01023@yale-eli.YALE.ARPA> <823@imagen.UUCP>
Reply-To: braner@batcomputer.UUCP (braner)
Organization: Theory Center, Cornell University, Ithaca NY
Lines: 19
Summary: cr/lf in TOS.  My umacs does it right.