Artifacts Associated With Ticket 577093ffffffffff
Ticket change [b47ca5e533] (rid 125046) by vincentdarley on 2002-07-03 17:51:17:
- assignee initialized to: "andreas_kupries"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "obsolete: 8.4a5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "37. File System"
- title initialized to: "Tcl_(FS)OpenFileChannel and "rb""
- type initialized to: "RFE"
Ticket change [40eaa87526] (rid 116094) by andreas_kupries on 2002-07-04 01:53:31:
- icomment:
Logged In: YES user_id=75003 What is the behaviour of 8.3 when using a "b" specifier ? If it is the same I would consider this a feature request, and not a bug.
- login: "andreas_kupries"
- mimetype: "text/plain"
- title changed to: "Tcl_(FS)OpenFileChannel and "rb""
- username: "andreas_kupries"
- icomment:
Ticket change [00b4d41410] (rid 119364) by vincentdarley on 2002-07-04 21:48:41:
- assignee changed to: "nobody"
- foundin changed to: "None"
- icomment:
Logged In: YES user_id=32170 The behaviour hasn't changed since 8.3, so I guess this is indeed a feature request. One could even imagine a hookable mechanism in the future which allowed other (arbitrary) actions to be taken on open. (Set the 'encoding' automatically might be nice, then perhaps 'source' could deal with unicode files).
- login: "vincentdarley"
- mimetype: "text/plain"
- subsystem changed to: "None"
- title changed to: "Tcl_(FS)OpenFileChannel and "rb""
- username: "vincentdarley"
Ticket change [a1195a2a62] (rid 109663) by dkf on 2003-02-25 16:32:56:
- title changed to: "Tcl_(FS)OpenFileChannel and 'rb'"
Ticket change [4dc6244b45] (rid 127112) by dgp on 2003-11-13 05:59:22:
- assignee changed to: "vincentdarley"
Ticket change [b90f6c41b6] (rid 129063) by dgp on 2005-03-24 01:45:51:
- icomment:
Logged In: YES user_id=80530 This is TIP 183.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [939894e7e8] (rid 105845) by dgp on 2005-03-25 00:43:19:
- icomment:
Logged In: YES user_id=80530 Actually this is a bit different from TIP 183, which proposes the change only for [open]. That's simpler to do than changing for Tcl_FSOpenFileChannel() since the latter raises questions about what changes each Tcl_Filesystem's Tcl_FSOpenFileChannelProc might have to handle in its "mode" argument.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f57574c042] (rid 130111) by dgp on 2005-04-01 06:30:02:
- icomment:
File Added - 128021: 577093.patch Logged In: YES user_id=80530 Turns out doing this at the Tcl_FSOpenFileChannel() level works fine, and spares the VFS drivers from having to do anything. Here's the patch.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [d535ee98ac] (rid 123580) by vincentdarley on 2005-04-01 15:55:52:
- icomment:
Logged In: YES user_id=32170 I haven't had time to test right now, but the patch itself looks nice and clean. It would be good to add a new test which writes some stuff to a file in binary and then reads it back and check that \r \n line endings have not been mangled.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [65e45c2a87] (rid 102617) by dgp on 2005-04-28 01:34:56:
- icomment:
Logged In: YES user_id=80530 Updated patch contains docs and tests.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [33dca2ba3e] (rid 106667) by dgp on 2005-04-28 01:34:59:
- icomment:
File Added - 131982: 577093.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [75b37833a1] (rid 105429) by dgp on 2005-04-28 01:35:01:
- icomment:
File Deleted - 128021:
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [de749b0848] (rid 114853) by dgp on 2005-04-28 01:41:12:
- icomment:
Logged In: YES user_id=80530 correction.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "577093.patch" [14bd28c510] (rid 124447) by dgp on 2005-04-28 01:41:12.
Ticket change [d79b0d89fd] (rid 124019) by dgp on 2005-04-28 01:41:15:
- icomment:
File Deleted - 131982: File Added - 131986: 577093.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8288743cf3] (rid 117255) by dgp on 2005-04-28 02:03:05:
- assignee changed to: "dgp"
- closedate changed to: "2005-04-27T19:03:05"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Committed for Tcl 8.5a3
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dgp"