Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 46a58ae947bc6733af7fd4b681d734a7c084ff1c
Ticket: 792641f95b3198b2b90bc3e3e418a6fb5ab339dd
Normilized win32 paths should never contain backslash
User & Date: jan.nijtmans on 2014-04-10 13:25:07
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    When experimenting with extended win32 paths (starting with "//?/" I noticed that sometimes normalized paths started to contain backslashes. That should never happen. It's difficult to write a test-case for it, as it depends how Tcl_Obj's are shared whether it occurs or not. The problem is this commit [05001e9ac2], mainly this part: [http://core.tcl.tk/tcl/artifact/103f5cb655?ln=3280-3286]. The problem is that the validPathPtr Tcl_Obj is modified in-place to contain backslashes in stead of slashes. If this Tcl_Obj is shared, that is asking for trouble.
    
    Solution: Don't do the slash->backslash translation in-place, and do it for all WinNT paths: Some Win32 API's don't handle slashes as well as backslashes, and the native path is maintained internally in Tcl anyway. All test-cases still pass.
    
  5. foundin changed to: "8.5"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "36. Pathname Management"
  14. title changed to:
    Normilized win32 paths should never contain backslash
    
  15. type changed to: "Bug"