Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d454c96489dd609658f639b9ad0154636279805b5b94eca9bba3b3141d2c035e
Ticket: 108904173c1a823a20823885c7b29ab536434a5a
glob and file normalize inconsistencies on case insensitive filesystem
User & Date: apnadkarni on 2026-03-22 15:30:15
Changes

  1. icomment:
    Proposed fix in [bug-108904173c](https://core.tcl-lang.org/tcl/timeline?r=bug-108904173c). This may be both incomplete and non-optimal.
    
    The basic issue was that the internal representation generator that checks whether a path needs normalization makes the determination purely based on whether a path component contains `.` or `..`. However, normalization as defined in the documentation also requires the path to match the case of the on-disk file entry. This happens automatically on Unix which is case-sensitive but not Windows. Thus just checking for `.` or `..` does not suffice on Windows.
    
    Therefore on Windows, the internal representation is always marked as needing normalization in the branch as a conservative approach as it is not known whether the appended path is exactly the on-disk string. This is non-optimal because when globbing a directory and retrieving the actual name from disk, the passed string is in fact normalized. So the next step would be to pass that information down to the function creating the internal representation so normalization can be skipped for path components read from disk.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"