Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b47ca5e533568074f84b836ca3e2724818d940e7
Ticket: 577093ffffffffffffffffffffffffffffffffff
Tcl_(FS)OpenFileChannel and 'rb'
User & Date: vincentdarley on 2002-07-03 17:51:17
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. 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).
    
    
  4. foundin changed to: "obsolete: 8.4a5"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "vincentdarley"
  9. subsystem changed to: "37. File System"
  10. title changed to: "Tcl_(FS)OpenFileChannel and "rb""
  11. type changed to: "RFE"