Overview
| Artifact ID: | b47ca5e533568074f84b836ca3e2724818d940e7 |
|---|---|
| Ticket: | 577093ffffffffffffffffffffffffffffffffff
Tcl_(FS)OpenFileChannel and 'rb' |
| User & Date: | vincentdarley on 2002-07-03 17:51:17 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
The standard 'fopen()' C function allows the optional "b" mode specifier alongside "rwa+" to specify that the file to be opened is binary. Tcl's Tcl_(FS)OpenFileChannel commands do not support "b" and throw an error if it is given. It would be quite easy to parse out the "b" and do call Tcl_SetChannelOption(NULL, chan, "- translation", "binary") after the channel is opened. Should this be added to Tcl? I don't know enough about generic channels in Tcl to know if it is possible for that action to fail or otherwise cause problems (bear in mind that, with VFS, the channel may not be a file, but could be a memchan, for example).
- foundin changed to: "obsolete: 8.4a5"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "37. File System"
- title changed to: "Tcl_(FS)OpenFileChannel and "rb""
- type changed to: "RFE"