emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file-attributes returns wrong info on Windows


From: Eli Zaretskii
Subject: Re: file-attributes returns wrong info on Windows
Date: Tue, 18 Jul 2006 23:32:14 +0300

> From: Chris Britton <address@hidden>
> Date: Tue, 18 Jul 2006 01:42:45 -0500
> 
> I did some debugging and it's definitely the stat call in
> emacs/src/w32.c that's returning a modification time of 1143530738 for
> my example file instead of the 1143530739 value that the standard
> library stat returns.

The library stat has only 1-second resolution, while the replacement
uses system calls that support the full Windows file-time resolution
and range.

> Also, if I completely remove the stat function from w32.c, the
> file-attributes function returns the correct modification time.
> I'm not suggesting this as a solution; just another data point.

See above: it's clear why this happens.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]