Forum: Ruby FileTest.size > 2GB ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0bd11e9521d2d8fc840d0b7e17ac7cd3?d=identicon&s=25 Manuel Kasten (Guest)
on 2006-03-12 14:01
(Received via mailing list)
Hello,

I'm using "ruby 1.8.4 (2005-12-24) [i386-mswin32]" and I'm
having problems with FileTest.size and files > 2GB. Seems it
doesn't return a Bignum for them, but a (wrapped) Fixnum. For
a 3GB File, thats a "size" of -1GB. Is there something I can
do about it? Is there an alternative?

Regards, Manuel
F1d6cc2b735bfd82c8773172da2aeab9?d=identicon&s=25 unknown (Guest)
on 2006-03-13 15:23
(Received via mailing list)
Hi,

At Sun, 12 Mar 2006 21:58:44 +0900,
Manuel Kasten wrote in [ruby-talk:183773]:
> I'm using "ruby 1.8.4 (2005-12-24) [i386-mswin32]" and I'm
> having problems with FileTest.size and files > 2GB. Seems it
> doesn't return a Bignum for them, but a (wrapped) Fixnum. For
> a 3GB File, thats a "size" of -1GB. Is there something I can
> do about it? Is there an alternative?

mswin32 version doesn't have large file support yet.
This topic is locked and can not be replied to.