--Apple-Mail-28-55301150
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 30 Jan 2005, at 01:01, Tanaka Akira wrote:

> In article <afb58459e78a4b10ffa76845c32d48d3 / segment7.net>,
>   Eric Hodel <drbrain / segment7.net> writes:
>
>> I wanted to implement tail(1) in ruby cleanly, but found the best I
>> could do was to trigger clearerr(3) with fp.pos = fp.pos.  So then I
>> whipped up this nice little patch to add IO#clearerr.
>
> clearerr should be useless in Ruby 1.9 because Ruby 1.9 doesn't use
> the flag to clear.

Would it make sense to add this to Ruby 1.8 only then?

Or to patch rb_io_eof to clearerr before feof?

-- 
Eric Hodel - drbrain / segment7.net - http://segment7.net
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

--Apple-Mail-28-55301150
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFB/rUAMypVHHlsnwQRAk7HAKCGCK6LOsh/vKn0Eq2rKXKLTeiaaQCgvS6f
2irjbeGRKY0rWPwNot2KV9s=
=vOVg
-----END PGP SIGNATURE-----

--Apple-Mail-28-55301150--