Skip to content
Tcl Source Code History Of Ticket f6db6d1ec409ca39
Login

History Of Ticket f6db6d1ec409ca39

Artifacts Associated With Ticket f6db6d1ec409ca39

  1. Ticket change [4f6bfd456e] (rid 200863) by ralfixx on 2022-05-17 17:27:04:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      tcl 8.6.12, Windows 10, with latest updates applied
      
      Asking for long filename (which does not exist)
          % glob -nocomplain [string repeat x 251]
      Ok, empty list.
      
      Adding a "*" makes the path name too long and glob err out
      instead of returning an empty list:
          % glob -nocomplain [string repeat x 251]*
          couldn't read directory "C:/Users/ralf/AppData/Local/Temp/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*": no such file or directory
      
      => IMHO both commands should return an empty list, even if the second command hits
      the MAX_PATH limit in Windows.
      
      As an aside, on Linux I can do
      
        % glob -nocomplain [string repeat x 1000000]
        % glob -nocomplain [string repeat x 1000000]*
      
      => empty list each, no error, although trying to create that file also
      returns an error since the file name is too long.
      
    5. foundin initialized to: "8.6.12"
    6. is_private initialized to: "0"
    7. login: "ralfixx"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "1d3c95db24e116878d6afed7cf890a89a0effe62"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "ralfixx"
    14. subsystem initialized to: "36. Pathname Management"
    15. title initialized to:
      glob raises an error with long pathnames on windows
      
    16. type initialized to: "Bug"
  2. Ticket change [538198aaa9] (rid 200864) by ralfixx on 2022-05-17 17:27:32:

    1. login: "ralfixx"
    2. mimetype: "text/plain"
    3. title changed to:
      glob raises an error with too long pathnames on windows
      
  3. Ticket change [e603083dd7] (rid 253785) by apnadkarni on 2026-05-22 11:11:26:

    1. closedate changed to: "2461182.9662775812"
    2. closer changed to: "apnadkarni"
    3. icomment:
      Still present in 9.0.3. Fixed for 9.0.4
      
      ```
      % info patch
      9.0.3
      % glob -nocomplain [string repeat x 251]*
      couldn't read directory "C:/src/tcltk/9.0.3/tcl/win/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*": no such file or directory
      ```
      
      ```
      % info patch
      9.0.4
      % glob -nocomplain [string repeat x 251]*
      ```
      
    4. login: "apnadkarni"
    5. mimetype: "text/x-markdown"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"