From: Daniel Berger Date: 2006-11-04T08:20:12+09:00 Subject: Re: file size revisit Park Heesob wrote: > Hi, > > >From: "Daniel Berger" > >Reply-To: ruby-talk@ruby-lang.org > >To: ruby-talk@ruby-lang.org (ruby-talk ML) > >Subject: Re: file size revisit > >Date: Fri, 3 Nov 2006 04:30:14 +0900 > > > > > > > >Actually, we all agree. It's a bug in Ruby. It has been brought up, > >more than once. The problem is the use of stat instead of stat64 in the > >win32.c file. > > > >If I'm feeling up to it this weekend, I'll submit a patch that fixes > >File.size and a few of the other methods. > > > >Regards, > > > >Dan > > > > > The File.size of win32-file still has a bug. > It cannot get correct size when file size is greater than 4Gb(4294967295 > byte). Looks like I used "L" instead of "Q" in the original buffer. Oops. I'll fix that this weekend. Thanks, Dan