From: Luis Lavena Date: 2009-12-12T04:08:26+09:00 Subject: Re: ruby 1.9.1 mingw32 under Windows On Dec 11, 2:34 pm, Andrei Tuzhilin wrote: > I've tried using ruby 1.9.1 compiled with mingw32 and had the following > error: > > f = File.open('C:/1.tst', 'w') => # > f.truncate(0) => 0 > f.truncate(10) > Errno::EINVAL: Invalid argument - C:/1.tst >         from (irb):4:in `truncate' >         from (irb):4 >         from > D:/Tuzhilin/ruby/ruby-1.9.1-p129-i386-mingw32/bin/irb.bat:20:in `
' > > This code works perfectly on win32 version or 1.8.6-mingw32, > 1.8.7-mingw32. Furthermore, this: > > File.truncate('C:/1.tst', 10) => 0 > > works perfect as well. > > Tried different builds of 1.9.1 and different versions of mingw32 gcc > compiler, no use =/ If you believe this is a bug of Ruby, please test latest 1.9.1 patchlevel (243 or 376) and report it to Redmine: http://redmine.ruby-lang.org/ http://redmine.ruby-lang.org/projects/show/ruby-191 -- Luis Lavena