IO#eof? consumes a byte
-----------------------

                 Key: JRUBY-2632
                 URL: http://jira.codehaus.org/browse/JRUBY-2632
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.2
            Reporter: Kevin Ballard
            Assignee: Thomas E Enebo


Calling IO#eof? consumes the first byte off the IO object. This makes #eof? 
completely unusable.

{noformat}
rd, wr = IO.pipe
wr.write("foo")
p rd.eof?
p rd.readpartial(10)
{noformat}

This prints "oo"

-- 
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