Hallo Eli,

what I wrote is wrong. The problem is the function "file-attributes" in 
dired.c. Here another test:

(file-attributes "c:/home/maierha/tmp/tmp.dat")

(nil 1 5 5 (17968 29649) (17968 29649) (17968 29268) 4249180672.0 "-rw-rw-rw-" 
nil -6212 9360833)
(nil 1 5 5 (17968 29652) (17968 29652) (17968 29268) 4283041792.0 "-rw-rw-rw-" 
nil -6212 9360833)
(nil 1 5 5 (17968 29653) (17968 29653) (17968 29268) 1024         "-rw-rw-rw-" 
nil -6212 9360833)

The function was called during the creation of the file with the dd command. I 
am using the dd command from cygwin. The problem happens too with tramp (plink).

Harald

-----Ursprüngliche Nachricht-----
Von: Maier, Harald 
Gesendet: Donnerstag, 26. April 2007 09:35
An: '[EMAIL PROTECTED]'
Cc: 'help-emacs-windows@gnu.org'
Betreff: Re: [h-e-w] w32: dired displays wrong filesize


Eli Zaretskii Wed, 25 Apr 2007 20:33:37 -0700

>> From: "Maier, Harald" <[EMAIL PROTECTED]>

>> It looks that filesizes greater max integer are not displayed 
>> correctly. This bug happens only on the W32 platform.

> Windows uses ls-lisp.el, but I think it works with floats, not 
> integers.  Can you please step inside ls-lisp.el with a Lisp debugger 
> and tell where does the size overflow there?

(directory-files-and-attributes ...) returns the wrong size. If I look into the 
C-Code then it appears that the problem is in the function 
"directory_files_internal" in dired.c. There "...nbytes" and "len"
variables are only a integers. Unfortunately I am not able to debug C-Sources.

Harald




Reply via email to