🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #20258

Re: LSC 2.11 stdio bug

#20258
From: Steve Kearns
Date: Tue, 13 Oct 1987 22:30
13 lines
1312 bytes
Hi.
Are you sure that this is a bug?  I was bitten by this "feature"
before.  Actually, if it is the same problem I have, then 
the problem is that you should open the file for reading with the
options "wb" instead of just "w".  Changing cr to cr/lf or just to lf
is a feature that ensures that all text files look the same.  

Adding the "b" option when you open the file sets a flag that 
determines whether the stdio code makes the cr/lf substitution or not.  
Obviously, if you have a binary file you dont want it randomly substituting
numbers for numbers;  this is what the "b" option is for.  

I didn't look closely at the line, but I bet it is correct.  
Technical Details
Message-ID: <5059@columbia.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!rutgers!columbia!garfield.columbia.edu!kearns
References: <17539@yale-celray.yale.UUCP> <2987@husc6.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!mnetor!uunet!husc6!cmcl2!rutgers!columbia!garfield.columbia.edu!kearns
From: kearns@garfield.columbia.edu (Steve Kearns)
Newsgroups: comp.sys.mac
Subject: Re: LSC 2.11 stdio bug
Message-ID: <5059@columbia.edu>
Date: Tue, 13-Oct-87 18:30:33 EDT
Article-I.D.: columbia.5059
Posted: Tue Oct 13 18:30:33 1987
Date-Received: Thu, 15-Oct-87 05:35:40 EDT
References: <17539@yale-celray.yale.UUCP> <2987@husc6.UUCP>
Sender: nobody@columbia.edu
Reply-To: kearns@garfield.columbia.edu.UUCP (Steve Kearns)
Organization: Columbia University CS Department
Lines: 13