IO#ungetc dosen't put the position back
---------------------------------------

                 Key: JRUBY-2202
                 URL: http://jira.codehaus.org/browse/JRUBY-2202
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
            Reporter: Koichiro Ohba
         Attachments: ungetc.patch

I attach a patch for this.
It also fixes JRUBY-61's testIOWindows.rb errors.

{code}
require 'test/minirunit'

f = File.new("test.txt", "r")
c = f.getc
f.ungetc c

test_equal(0, f.pos)
{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to