Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!aplcen!haven!umd5!zben
From: zben@umd5.umd.edu (Ben Cranston)
Newsgroups: comp.sys.mac.programmer
Subject: Re: File manager's "Newline" mode
Summary: Fixed code contained herein
Message-ID: <5374@umd5.umd.edu>
Date: 25 Sep 89 22:33:18 GMT
References: <12604@orstcs.CS.ORST.EDU> <31506@ucbvax.BERKELEY.EDU> <12615@orstcs.CS.ORST.EDU>
Reply-To: zben@umd5.umd.edu (Ben Cranston)
Distribution: usa
Organization: University of Maryland, College Park
Lines: 24

In article <12615@orstcs.CS.ORST.EDU> borcelf@jacobs.CS.ORST.EDU.UUCP (Fernando Borcel) writes:

> New Line mode ... set the high byte in ioPosMode to the NewLine character.  

OK, you got half of it right, but you also gotta set one bit to tell it
that there is something meaningful in that byte.  You wouldn't want it to
stop on every NULL, would you   :-)

>   ioMisc := nil;
>   ioBuffer := @stream;
>   ioReqCount := 255;
>   ioPosMode := $0d00;		{High byte = }
    ioPosMode := $0d80;         {Hi byte CR and bit 7 to say it is valid}
                    ^
>   ioPosOffset := 0;

My apologies for the relative verbousity of this note when I could have just
added one line to the original message pointing out the problem.  When I did
so the news software complained that I had not added enough new text to the
message (thanks, guys).  Lets hope this is enough to satisfy it.
-- 
Sig     DS.L    ('ZBen')       ; Ben Cranston 
* Computer Science Center Network Infrastructures Group
* University of Maryland at College Park