Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b3e5b668c628182952d0ba4601aeeb98a6fa9edf
Ticket: 1353840fffffffffffffffffffffffffffffffff
windows stat has daylight savings problems
User & Date: kennykb on 2005-11-15 23:45:40
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    
    I knew I had looked at this once before, and found it today:
    [Bug 926106].
    
    I had already fixed this issue in 8.5 - in much the way that
    you suggest, but with some additions.  Essentially, we have
    to avoid all use of the MSVC stat or _stati64 functions,
    because they have the exact same bug.  Moreover, we have to
    avoid use of the MSVC utime function as well - because it
    has an "anti-bug" to perform the reverse adjustment to match
    'stat'.
    
    I had initially resisted backporting for two reasons:
    
    (1) A backport risked damaging legacy code with a potential
    incompatibility.
    
    (2) In the new code, [clock format [file mtime $file]] gives
    different results from the time shown in Windows Explorer,
    because, guess what! Explorer has the same bug, too!
    
    You've convinced me, though, that getting the timestamps
    right is The Right Thing, no matter how many Microsoft tools
    get them wrong.
    
    I've committed the 8.5 fix into the 8.4 branch.  I'm leaving
    this bug open because we most likely *do* want to put in an
    "anti-bug" for FAT32 - that would constrain the cases we get
    wrong to "FAT32 + DST change + no reboot" - surely the most
    unusual of the cases.
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. subsystem changed to: "36. Pathname Management"
  5. username: "kennykb"