Issue #6179 has been updated by luislavena (Luis Lavena).


=begin
jmthomas (Jason Thomas) wrote:
> Calling the pos method on a File in the Windows version of Ruby on 1.9.3p125 moves the file pointer. Thus it can not be called without side effect.

Are you talking about File#pos or File#pos=?

Can you create an example like the following?

 1.9.3p125 :003 > File.write "foo", "This is one line\nThis is second line\n"
 => 37 
 1.9.3p125 :004 > f = File.open "foo"
 => #<File:foo> 
 1.9.3p125 :005 > f.pos
 => 0 
 1.9.3p125 :006 > f.gets
 => "This is one line\n" 
 1.9.3p125 :007 > f.pos
 => 17 
 1.9.3p125 :008 > f.gets
 => "This is second line\n" 
 1.9.3p125 :009 > f.pos
 => 37 
 1.9.3p125 :010 > f.close
 => nil 
 1.9.3p125 :011 > exit
=end
----------------------------------------
Bug #6179: File::pos broken in Windows 1.9.3p125
https://bugs.ruby-lang.org/issues/6179#change-24980

Author: jmthomas (Jason Thomas)
Status: Open
Priority: High
Assignee: 
Category: 
Target version: 1.9.3
ruby -v: 1.9.3p125


Calling the pos method on a File in the Windows version of Ruby on 1.9.3p125 moves the file pointer. Thus it can not be called without side effect.


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