Hi,

On Mon, Dec 7, 2009 at 08:02, Yukihiro Matsumoto <matz / ruby-lang.org> wrote=
:
> Spec has changed for 1.9:
>
> =A0call-seq:
> =A0 strio.ungetc(string) =A0 -> nil
>
> =A0Pushes back one character (passed as a parameter) onto *strio*
> =A0such that a subsequent buffered read will return it. =A0There is no
> =A0limitation for multiple pushbacks including pushing back behind the
> =A0beginning of the buffer string.

Yes.

> 1.8.7 inherits the behavior from 1.9, but spec statement has not been
> updated.

Do you mean this IO change should be backported?

0% ruby19 -ve 'r,w =3D IO.pipe; r.ungetc(?a); p r.getc'
ruby 1.9.2dev (2009-12-08 trunk 26049) [i686-linux]
"a"
0% ruby -ve 'r,w =3D IO.pipe; r.ungetc(?a); p r.getc'
ruby 1.8.8dev (2009-12-07 revision 25983) [i686-linux]
-e:1:in `ungetc': unread stream (IOError)
	from -e:1
1%