Artifacts Associated With Ticket 2388866fff
Ticket change [0ef5b40ff9] (rid 94710) by dgp on 2008-12-04 14:30:10:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
[file tempfile var template] is supposed to use the template as a pattern on what pathname to give the temporary file. If the directory part of the template points into a mounted vfs, though, this cannot work, since the deep guts of [file tempfile] are written in terms of native syscalls such as mkstemps() which know nothing about Tcl's collection of virtual filesystems. [fileutil::tempfile] has other design troubles, but it does not suffer from this limitation. I don't see why we should accept it from [file tempfile].
- foundin initialized to: "obsolete: 8.6a4"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "[file tempfile] can only create file in native fs"
- type initialized to: "RFE"
Ticket change [9f26e58698] (rid 96588) by ferrieux on 2008-12-04 21:48:44:
- icomment:
(I know Donal loves when I try to rewrite history, but...) May I ask why TIP#210 was accepted then ? Obviously all these matters cannot be handled more elegantly than by the script level, which provides the proper abstractions; moreover there's no real performance catch here. So what's the point of a C implementation ?
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"
- icomment:
Ticket change [0b2316902b] (rid 113928) by hobbs on 2008-12-05 01:23:47:
- icomment:
I would say this is a limitation of the implementation that can be fixed for 8.6.0. All you need to do is check if template points to a non-native area and fallback to a virtual file. I could see this potentially having issues with certain vfses, but that would be up to the end developer and their choice of vfs.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
- icomment:
Ticket change [970e364311] (rid 106442) by dkf on 2008-12-07 03:15:03:
- icomment:
Forced to use the native FS for now; attempting to put the file in a virtual FS makes that part of the template get dropped instead. This means that the temporary is available for use with OS APIs and external programs.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [7d4a909a99] (rid 97217) by dkf on 2008-12-07 03:15:04:
- priority changed to: "4"
Ticket change [3fc5db9bc2] (rid 121521) by dgp on 2009-12-10 02:48:52:
- priority changed to: "9 Immediate"
Ticket change [ee1a55addc] (rid 104025) by dkf on 2009-12-14 17:02:16:
- closedate changed to: "2009-12-14T10:02:16"
- closer changed to: "dkf"
- icomment:
allow_comments - 1 Since it is impossible to use a tempfile in a virtual filesystem with any non-Tcl API, why on earth would you want otherwise? Any time you need a temporary filename, it's because you're passing it off to something nasty that can't take things in some other nicer way.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Closed"
- username: "dkf"
Ticket change [52be0c1bb4] (rid 126369) by dgp on 2009-12-14 21:42:43:
- foundin changed to: "None"
- icomment:
allow_comments - 0 data_type - 360894 converted to Feature Request. The existence of [fileutil::tempfile] demonstrates this is not infeasible.
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- subsystem changed to: "16. Commands A-H"
- username: "dgp"
Ticket change [acc6007729] (rid 101350) by dkf on 2009-12-14 21:57:57:
- assignee changed to: "dgp"
Ticket change [6905b40018] (rid 103171) by kennykb on 2009-12-14 22:03:19:
- icomment:
There are still platforms - perhaps most - where [load] from a vfs requires copying the module to a temp file. If the tempfile is in a vfs that doesn't support direct loading, THEN what are we supposed to do?
- login: "kennykb"
- mimetype: "text/plain"
- username: "kennykb"
- icomment: