Skip to content
Tcl Source Code History Of Ticket 577093ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 577093ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 577093ffffffffffffffffffffffffffffffffff

  1. Ticket change [b47ca5e533] (rid 125046) by vincentdarley on 2002-07-03 17:51:17:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. 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).
      
      
    4. foundin initialized to: "obsolete: 8.4a5"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vincentdarley"
    9. subsystem initialized to: "37. File System"
    10. title initialized to: "Tcl_(FS)OpenFileChannel and "rb""
    11. type initialized to: "RFE"
  2. Ticket change [40eaa87526] (rid 116094) by andreas_kupries on 2002-07-04 01:53:31:

    1. 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.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. title changed to: "Tcl_(FS)OpenFileChannel and "rb""
    5. username: "andreas_kupries"
  3. Ticket change [00b4d41410] (rid 119364) by vincentdarley on 2002-07-04 21:48:41:

    1. assignee changed to: "nobody"
    2. foundin changed to: "None"
    3. 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).
      
      
      
    4. login: "vincentdarley"
    5. mimetype: "text/plain"
    6. subsystem changed to: "None"
    7. title changed to: "Tcl_(FS)OpenFileChannel and "rb""
    8. username: "vincentdarley"
  4. Ticket change [a1195a2a62] (rid 109663) by dkf on 2003-02-25 16:32:56:

    1. title changed to: "Tcl_(FS)OpenFileChannel and 'rb'"
  5. Ticket change [4dc6244b45] (rid 127112) by dgp on 2003-11-13 05:59:22:

    1. assignee changed to: "vincentdarley"
  6. Ticket change [b90f6c41b6] (rid 129063) by dgp on 2005-03-24 01:45:51:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      This is TIP 183.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [939894e7e8] (rid 105845) by dgp on 2005-03-25 00:43:19:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [f57574c042] (rid 130111) by dgp on 2005-04-01 06:30:02:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [d535ee98ac] (rid 123580) by vincentdarley on 2005-04-01 15:55:52:

    1. 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.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  10. Ticket change [65e45c2a87] (rid 102617) by dgp on 2005-04-28 01:34:56:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Updated patch contains docs and tests.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [33dca2ba3e] (rid 106667) by dgp on 2005-04-28 01:34:59:

    1. icomment:
      
      
      File Added - 131982: 577093.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [75b37833a1] (rid 105429) by dgp on 2005-04-28 01:35:01:

    1. icomment:
      
      
      File Deleted - 128021: 
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [de749b0848] (rid 114853) by dgp on 2005-04-28 01:41:12:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      correction.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  14. Add attachment "577093.patch" [14bd28c510] (rid 124447) by dgp on 2005-04-28 01:41:12.

  15. Ticket change [d79b0d89fd] (rid 124019) by dgp on 2005-04-28 01:41:15:

    1. icomment:
      
      
      File Deleted - 131982: 
      
      
      
      File Added - 131986: 577093.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  16. Ticket change [8288743cf3] (rid 117255) by dgp on 2005-04-28 02:03:05:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2005-04-27T19:03:05"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Committed for Tcl 8.5a3
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Accepted"
    8. status changed to: "Closed"
    9. username: "dgp"