From: Robert Klemme Date: 2003-11-20T18:02:14+09:00 Subject: Re: [BUG] File#rewind, File#syswrite, File#pos on Cygwin build "Alan Davies" schrieb im Newsbeitrag news:3fba526d@primark.com... > On the cygwin build of ruby v1.8.0, I have encountered a strange bug > when using rewind, syswrite and pos. If you open a file in read/write > mode, read the contents, rewind, syswrite some data, then File#pos > always seems to return zero. This does not happen if you use the > windows build, or you replace 'syswrite' with 'write'. "Do not mix with other methods that write to ios or you may get unpredictable results." http://www.rubycentral.com/book/ref_c_io.html#IO.syswrite robert