Hi,

On Mon, Dec 7, 2009 at 08:02, Yukihiro Matsumoto <matz / ruby-lang.org> wrote:
> Spec has changed for 1.9:
>
>  
> strio.ungetc(string) -> nil
>
>      >           
>     >     
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 = 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 = 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%