From: Andrei Tuzhilin Date: 2009-12-12T02:34:41+09:00 Subject: ruby 1.9.1 mingw32 under Windows 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 =/ -- Posted via http://www.ruby-forum.com/.