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
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- 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.
- foundin changed to: "8.5"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "36. Pathname Management"
- title changed to:
Normilized win32 paths should never contain backslash
- type changed to: "Bug"