Overview
| Artifact ID: | 0f20cd0cc20c23ac66f7c1271cc56572ef4310c8 |
|---|---|
| Ticket: | 2879351fffffffffffffffffffffffffffffffff
file writable broken on Windows |
| User & Date: | dgp on 2012-01-14 01:32:03 |
Changes
- icomment:
Based on correspondence with the contributor of that patch, the issue reported here about the directory c:/Program Files may be a consequence of a feature of Windows (7?) called VirtualStore which is some systematic conspiracy to lie to 32bit apps running on 64bit systems (?): " % file writable {C:\Program Files} 0 % set a [open {C:\Program Files\foo.bar} w] file5020d8 % puts $a "Hello world!" % close $a % exit C:\>type foo.bar The system cannot find the file specified. file writable *correctly* reports that C:\Program Files is not writable. If a 32-bit app tries to write there anyway, then for purposes of backward compatibility, Windows (lies and) creates a shadow directory tree under %HOME%\AppData\Local\VirtualStore\ to hold user files. These files will appear to be in C:\Program Files to other 32-bit apps run by the same user, but 64-bit apps or apps run by other users will not see these files. If the Tcl script is providing output for other apps, this is bad news. IMO, in this circumstance the recommendation to avoid file writable and rely on open is exactly backwards." - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"