Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7f358d65df624772385aa484611c7ba1f67b1098
Ticket: 497437ffffffffffffffffffffffffffffffffff
errors in doc/StdChannels.3
User & Date: dgp on 2001-12-28 22:17:38
Changes

  1. assignee changed to: "andreas_kupries"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    From StdChannels.3:
    ...
    INITIALIZATION OF TCL STANDARD CHANNELS
    ...
     2) All uninitialized standard channels are
        initialized to platform-specific default values:
    ...
    
      (b) when information about any standard channel is
          requested with a call to Tcl_GetStdChannel, ...
    
    That is not true.  When Tcl_GetStdChannel(TCL_STDIN)
    is called, for example, only the standard channel
    "stdin" is initialized to the default, *not* "[a]ll
    uninitialized standard channels".  That is, the
    standard channels are initialized one by one, not as
    a block.  That's why Tcl_GetStdChannel() maintains a
    separate std*Initialized flag for each of them.
    
    More from StdChannels.3:
    ...
    tclsh
     The Tcl shell (or rather Tcl_Main) uses method 2 to
     initialize the standard channels.
    
    Not (exactly) so.  Tcl_Main calls Tcl_GetStdChannel
    only on certain channels and only under certain
    conditions.  Most notably, when tclsh evaluates a
    startup script, no call to Tcl_GetStdChannel() is made.
    In that common case, it is more likely method 3 that
    actually causes Tcl's standard channels to be set to
    their platform defaults.
    
    For the second error, it may be better to make the code
    agree with the docs, instead of changing the docs to
    match the code.  I'll wait for Andreas' comment when
    he gets back.  We'll need to discuss where in Tcl_Main
    it would be best to perform standard channel
    initialization.
    
    
  4. foundin changed to: "obsolete: 8.4a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "25. Channel System"
  10. title changed to: "errors in doc/StdChannels.3"
  11. type changed to: "Bug"