Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7635584924dce9596ca4139f734e57c8147bb646
Ticket: 3518244fffffffffffffffffffffffffffffffff
documentation for OPENFILECHANNELPROC may lead to bugs
User & Date: lobotomy642 on 2012-04-15 18:19:24
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hello,
    
    At current time, the section in the man page about the FileSystem's callback function "openFileChannelProc" can lead to bugs, as the paragraph suggests we should register the channel in the interpreter with "RegisterChannel"; this is not the case as this can lead to crash in some use cases ("called Tcl_Close on channel with refCount > 0"), and the TclLib's function "Tcl_FSOpenFileChannel" states that this has to be done by its caller.
    
    I propose the attached patch to the man page to remove the possible misunderstanding.
    
  4. foundin changed to: "obsolete: 8.5.11"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "lobotomy642"
  10. subsystem changed to: "37. File System"
  11. title changed to:
    documentation for OPENFILECHANNELPROC may lead to bugs
    
  12. type changed to: "Bug"