From: Stas B. <sta...@gm...> - 2015-09-07 17:57:01
|
Robert Folland <rob...@me...> writes: > Hi, > > When using > > (file-length infile) > > on a file bigger than 4 GB it returns the part above 4 GB, not the correct file size. I am using sbcl 1.2.12 on Arch Linux, the 64-bit build: > > $ file /usr/bin/sbcl > /usr/bin/sbcl: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), > dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for > GNU/Linux 2.6.32, > BuildID[sha1]=35255041349f2eafd28d741b4a292a0fa972cdd1, stripped > > To get around it I used > > (filepos infile :end) > (filepos infile) > > which gives me the correct file size. > > Is there an optional way to use file-length, or is this a bug? SBCL 1.2.12 is not the current version of SBCL, 1.2.15 is. -- With best regards, Stas. |