Date: Sun, 31 Jan 1999 16:21:18 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Martin Str|mberg cc: DJGPP-WORKERS Subject: Re: Dired in emacs In-Reply-To: <199901311243.NAA08701@father.ludd.luth.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com 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.