From: "luislavena (Luis Lavena)" Date: 2012-03-21T23:30:38+09:00 Subject: [ruby-core:43535] [ruby-trunk - Bug #6179] File::pos broken in Windows 1.9.3p125 Issue #6179 has been updated by luislavena (Luis Lavena). Assignee set to h.shirosaki (Hiroshi Shirosaki) phasis68 (Heesob Park) wrote: > File.open with "r" means binary mode reading and it fails. > You mean that doing "r" (read) implies "binary"? because when open with "rb" works as expected: V:\>irb irb(main):001:0> f = File.open "foo", "rb" => # irb(main):002:0> f.readline => "Line one\r\n" irb(main):003:0> f.pos => 10 irb(main):004:0> f.readline => "Line two\r\n" But it fails when mode is implicit (only "r") Confirmed it is a bug, assigning it. Thank you. ---------------------------------------- Bug #6179: File::pos broken in Windows 1.9.3p125 https://bugs.ruby-lang.org/issues/6179#change-25015 Author: jmthomas (Jason Thomas) Status: Closed Priority: Normal Assignee: h.shirosaki (Hiroshi Shirosaki) Category: core 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/