Overview
| Artifact ID: | 233827a7fc77e1195ff4462707bcc719aef38150 |
|---|---|
| Ticket: | 5bfe3de008e6f7b5863619a4f9c801d040ff5ab8
^Z appended to sourced VFS files |
| User & Date: | andy on 2017-08-14 18:43:51 |
Changes
- icomment:
I see multiple distinct issues which perhaps should be separate tickets, and not all in the Tcl core repository: 1. [source] appends ^Z. 2. [close] doesn't confirm it's truly at EOF before appending ^Z. 3. Several Tcllib refchans cannot be made read-only. 4. Several sample VFSes do not decode and pass along the mode. 5. The mode string passed by VFS to the open command is confusing. 1 is fixed in 8.6.7, but the investigation opened a can of worms. 2 probably could be fixed, though we'll need to discuss it more. 3 means changing the way the Tcllib refchans are instantiated. For the sake of backward compatibility, giving them no additional mode arguments should make them be read-write. 4 is a direct consequence of 3, but I hypothesize that it in an alternate timeline in which 3 were never the case, 4 still could have been caused by 5. Regarding 5: I'd like to see the mode string regularized such that VFS-to-open mode strings always be directly acceptable to refchans with no translation required. How to do this compatibly? Maybe an extra element being returned by initialize could signal the VFS which style to use. Also regarding 5: The low-hanging fruit is to update the man page to say that read-only mode is denoted by empty string vice "r". Regarding 4 and 5: Where is the VFS extension hosted and developed?
- login: "andy"
- mimetype: "text/plain"
- username: "Andy Goth"