Issue #1693 has been updated by Yui NARUSE.

Status changed from Open to Rejected

This WONTFIX on 1.8.
----------------------------------------
Bug #1693: ARGF.rewind Doesn't Reset ARGF.lineno
https://bugs.ruby-lang.org/issues/1693

Author: Run Paint Run Run
Status: Rejected
Priority: Low
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.2dev (2009-06-25 trunk 23854) [i686-linux]


=begin
 ARGF.rewind doesn't reset the current line number to 0. IO#rewind does. This happens on all Ruby versions I have installed locally.
     
     $ ruby -ve 'p ARGF.lineno; ARGF.readline; ARGF.rewind; p ARGF.lineno' /etc/passwd
     ruby 1.9.2dev (2009-06-25 trunk 23854) [i686-linux]
     0
     1
=end



-- 
http://bugs.ruby-lang.org/