[comp.sys.mac] Text formatting when uploading to U

thomps@inmet (01/26/89)

 ----------------------------------------------------------------------------
> /* Written  9:47 am  Jan 24, 1989 by jdf@pbhyc.UUCP */
> /* ---------- "Text formatting when uploading to UNIX" -------- */
> I have been using a mac now for several months.  I am a convert from a
> MS-DOS based system.  I have gotten the mac to do everything the MS-DOS
> system did and much more er...except for one thing.  When I upload to a
> UNIX system my text files are at best unformatted.  At worst, total
> garbage.  I am using Red Ryder 10.3.  My word processor is Fullwrite and I
> am saving my files to ascii before sending.  When I monkey around with the
> options I can get the files transferred but they appear to VI as a single,
> very long, line and all formatting is gone.  Any ideas?  Get another DC(other
> than RR) program?  Different format for upload files?  Settings on RR?
>
> Jack Fine
 ----------------------------------------------------------------------------

	I am also a relatively new Mac SE user and use MS Word 3.01 and
	Red Ryder 10.3 to get text to/from my UNIX system.  In Word I
	found the same problem as you described, Jack, about infinitely
	long lines occuring when I kermited things to UNIX.  Saving
	text as "Text only" didn't work as I thought it would.  The
	solution I found was to save my text in Word using the format
	"Text with line breaks" before transmitting it to UNIX.

	I believe the problem has something to do with the default of
	<CR> as the text line terminator on most Mac word processors, and
	<LF> is needed at the UNIX end.  Somehow the kermit transmission
	on Red Ryder doesn't change the <CR> correctly unless there are
	"line breaks" in the file.  I haven't poked around more to see
	what a line break is in a Word saved file, but I expect it might
	be a <LF> or perhaps some other control character that the UNIX
	kermit maps to <LF>.

	I hope someone with more experience can further enlighten us
	about this.

	-JohnT.

melby@s.cs.uiuc.edu (01/27/89)

You have to convert carriage returns to linefeeds.  This can be done on the
UNIX system using the following command:

     tr '\015' '\012' < oldfile > newfile