Skip to content
Tcl Source Code History Of Ticket 3463315fffffffff
Login

History Of Ticket 3463315fffffffff

Artifacts Associated With Ticket 3463315fffffffff

  1. Ticket change [88f565d2e7] (rid 131948) by zoro2 on 2011-12-21 10:39:51:

    1. assignee initialized to: "vincentdarley"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The problem occurs on Windows 7 64bit and 32bit Tcl (such as ActiveTcl or custom build). I did not check 32bit Windows 7.
      
      On a Windows Vista 32bit this works fine, though.
      
      The problem is file normalize removes the etc part of the path and this makes the path invalid.
      
      % file exists C:/Windows/system32/drivers/etc/hosts
      1
      % file normalize C:/Windows/system32/drivers/etc/hosts
      C:/Windows/System32/drivers//hosts
      
      Changing the WOW64 does not change the behavior:
      
      % ::twapi::Wow64EnableWow64FsRedirection 0
      % file normalize C:/Windows/system32/drivers/etc/hosts
      C:/Windows/System32/drivers//hosts
      % ::twapi::Wow64EnableWow64FsRedirection 1
      % file normalize C:/Windows/system32/drivers/etc/hosts
      C:/Windows/System32/drivers//hosts
      
      Please let me know if I can provide any additional information or if I can help with anything related to this bug.
      
    4. foundin initialized to: "obsolete: 8.6b2"
    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: "zoro2"
    10. subsystem initialized to: "37. File System"
    11. title initialized to:
      file normalize breaks C:/Windows/system32/drivers/etc/hosts
      
    12. type initialized to: "Bug"
  2. Ticket change [fe267afbff] (rid 108529) by zoro2 on 2011-12-21 19:56:08:

    1. icomment:
      Small update - changing WOW64 seems to resolve the issue - previous example did not show it as I ran it in same process (and Tcl caches file normalize results):
      
      % package require twapi ; ::twapi::Wow64EnableWow64FsRedirection 0
      % file normalize C:/Windows/system32/drivers/etc/hosts
      C:/Windows/System32/drivers/etc/hosts
      
      And in a new process:
      
      % package require twapi ; ::twapi::Wow64EnableWow64FsRedirection 1
      % file normalize C:/Windows/system32/drivers/etc/hosts
      C:/Windows/System32/drivers//hosts
      
      So this seems to be an issue with how Windows handles drivers\etc in WOW64 mode.
      
      Also, when WOW64 is enabled:
      
      % glob C:/Windows/system32/drivers/etc
      C:/Windows/system32/drivers/etc
      % glob C:/Windows/system32/drivers/e*
      C:/Windows/system32/drivers/en-US
      % glob -type hidden C:/Windows/system32/drivers/e*
      no files matched glob pattern "C:/Windows/system32/drivers/e*"
      
      So it may be an issue the file is not visible when listing contents of directory.
      
      With WOW64 disabled:
      
      % glob C:/Windows/system32/drivers/et*
      C:/Windows/system32/drivers/etc
      
      
      
    2. login: "zoro2"
    3. mimetype: "text/plain"
    4. username: "zoro2"
  3. Ticket change [db11573497] (rid 107896) by nijtmans on 2011-12-21 21:01:41:

    1. icomment:
      Isn't this a duplicate of:
         [Tcl-bugs] [ tcl-Bugs-3092089 ] [file normalize] can remove path components
      ?
      
      Does the fix suggested there by Mark Garvey work for you?
      
      Regards,
               Jan Nijtmans
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  4. Ticket change [bd6fd20210] (rid 101904) by nijtmans on 2013-01-09 21:35:06:

    1. icomment:
      Similar to 3092089/3587096, but this one is not fixed yet.
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  5. Ticket change [a0c991a19b] (rid 96871) by nijtmans on 2013-01-09 21:35:08:

    1. assignee changed to: "nijtmans"
    2. foundin changed to: "obsolete: 8.5.13"
  6. Ticket change [13b8e8df8d] (rid 137000) by jan.nijtmans on 2014-02-21 19:08:15:

    1. assignee changed to: "jan.nijtmans"