Mail Archives: djgpp-workers/1999/01/31/09:24:03
On Sun, 31 Jan 1999, Martin Str|mberg wrote:
> Heh! Dired in emacs reports size -1 on a very big file (> 2^31) on a FAT32
> file system.
That's a feature. The DJGPP (and Windows 9X/NT) version of Emacs doesn't
spawn `ls' to create the directory listing; instead, it uses some Lisp
code that calls the `file-attributes' primitive (see the files dired.c and
ls-lisp.el). And `file-attributes' deliberately converts any size that's
larger than what Emacs can handle to -1. Since Emacs integers are 28-bit
wide, you actually get -1 even before you hit 2GB. 128MB is the largest
file Emacs can edit.
- Raw text -