[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed bug (was: Re: ORCA/C 2.0 bugs)
In article <1993May2.104340.10199@actrix.gen.nz> dempson@swell.actrix.gen.nz (David Empson) writes:
>ORCA/C 2.0 arrived a couple of days ago, and I've just installed it.
>I went through my 'known bugs' list to see if there were any problems,
>and tried a few other small test programs. I came up with the
>following bugs.
[...]
>1. [Library] If gets() is used and a blank line is entered, nothing
> is written into the target string (a null terminator should be
> written into the first byte). I haven't tried fgets(). [Bug
> also in 1.3]
Someone mentioned on a previous post that sed, when encountering a
blank line in the input, copied the _previous_ line again... perhaps
this is the problem, and sed just needs a library call fix for gets()
or fgets().
Could someone who has the source code for the libraries make an interim
fix, like (I believe) Soenke's fseekfix lib for v1.3? (Assuming that
Mike gives the go-ahead?)
--Devin Reade glyn@cs.ualberta.ca