Skip to content
Tcl Source Code History Of Ticket 3023017
Login

History Of Ticket 3023017

Artifacts Associated With Ticket 3023017

  1. Ticket change [05deabe12d] (rid 89126) by andreas_kupries on 2010-06-29 21:12:59:

    1. assignee initialized to: "patthoyts"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Tracking down a problem in the AT build system I came across this bug in Tcl 8.6 HEAD as the underlying cause. The attached example session demonstrates it, 'file isdirectory' wrongly returning 1 for a non-existing path of the form '<dir>/*' (i.e. the last component is the * glob character'. This bug does not occur in Tcl 8.5, nor does it occur on Linux. It is specific to the win32 platform.
      
      A bisection search of the trunk showed that the problem was introduced between Nov 18, 2009 (ok) and Nov 25, 2009 (fail). My apologies for not providing a smaller interval. The CVS contents fail to build on Windows between Nov 19 to Nov 24.
      
      Still, reading the ChangeLog for this interval the one change standing out to me is
      
      2009-11-24  Pat Thoyts  <[email protected]>
      
              * tests/fCmd.test: [Bug 2893771]: Teach [file stat] to handle locked
              * win/tclWinFile.c: files so that [file exists] no longer lies.
      
      which is the reason for the initial maintainer assignment.
      
      All other changes look unrelated, with Jan's changes to the win/ build-system accounting for the interval of build failures.
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "andreas_kupries"
    10. subsystem initialized to: "37. File System"
    11. title initialized to: "win32 file isdirectory <dir>/* broken."
    12. type initialized to: "Bug"
  2. Add attachment "session.txt" [f2e46eb0e5] (rid 109636) by andreas_kupries on 2010-06-30 04:13:00.

  3. Ticket change [dd543baab7] (rid 114648) by andreas_kupries on 2010-06-30 04:13:00:

    1. icomment:
      
      
      File Added - 378779: session.txt
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [7712cac4d9] (rid 105700) by andreas_kupries on 2010-06-30 04:16:12:

    1. icomment:
      Oops, failure to build is til Nov 23, Nov 24 builds and has the problem.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  5. Ticket change [480fd54b68] (rid 99822) by andreas_kupries on 2010-06-30 04:20:30:

    1. icomment:
      More info, now that I am looking at the code and other info ...
      SF commit message of the change says
      "[...] resorting to FindFirstFile when GetFileAttributes fails."
      I wonder if that tries to interpret the glob character ?
      Because the call is fine if I use a regular character for the non-existing file in the directory.
      
      The CVS diff is
      http://tcl.cvs.sourceforge.net/viewvc/tcl/tcl/win/tclWinFile.c?r1=1.98&r2=1.99
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [17ff49428e] (rid 122591) by dgp on 2010-06-30 19:32:39:

    1. icomment:
      
      If you revert that CVS diff from the HEAD, does it
      fix the bug in the HEAD?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [bb3b101249] (rid 129451) by andreas_kupries on 2010-06-30 22:46:56:

    1. icomment:
      Testing ... Yes, after reversion of that diff the 'file isdirectory' behaves correctly again.
      Of course, this also resurrects [Bug 2893771], although I haven't checked that.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [6d41ebe510] (rid 259748) by serhiy.storchaka on 2026-10-21 10:03:39:

    1. icomment:
      Fixed in 8.6.1 by [5567ed9fa5] (ticket [3608360]): the FindFirstFile fallback, which expanded the <tt>*</tt>, is now used only for sharing violations. On Windows 11, 8.6.0 still returns 1 for <tt>file isdirectory dir/*</tt>; 8.6.1, 8.6.18, 9.0.5 and 9.1 return 0.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  9. Ticket change [b97480fab9] (rid 260036) by serhiy.storchaka on 2026-10-22 17:19:31:

    1. closedate changed to: "2461334.919206169"
    2. closer changed to: "serhiy.storchaka"
    3. login: "serhiy.storchaka"