delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/01/31/09:24:03

Date: Sun, 31 Jan 1999 16:21:18 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Martin Str|mberg <ams AT ludd DOT luth DOT se>
cc: DJGPP-WORKERS <djgpp-workers AT delorie DOT com>
Subject: Re: Dired in emacs
In-Reply-To: <199901311243.NAA08701@father.ludd.luth.se>
Message-ID: <Pine.SUN.3.91.990131161511.19083D-100000@is>
MIME-Version: 1.0
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. 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019