[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: Re: [h-e-w] w32: dired displays wrong filesize
From: |
Maier, Harald |
Subject: |
AW: Re: [h-e-w] w32: dired displays wrong filesize |
Date: |
Thu, 26 Apr 2007 12:15:04 +0200 |
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: 'address@hidden'
Cc: 'address@hidden'
Betreff: Re: [h-e-w] w32: dired displays wrong filesize
Eli Zaretskii Wed, 25 Apr 2007 20:33:37 -0700
>> From: "Maier, Harald" <address@hidden>
>> 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
- AW: Re: [h-e-w] w32: dired displays wrong filesize,
Maier, Harald <=