Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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.