Skip to content
Tcl Source Code History Of Ticket 497437ffffffffff
Login

History Of Ticket 497437ffffffffff

Artifacts Associated With Ticket 497437ffffffffff

  1. Ticket change [7f358d65df] (rid 97533) by dgp on 2001-12-28 22:17:38:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.4a4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "25. Channel System"
    10. title initialized to: "errors in doc/StdChannels.3"
    11. type initialized to: "Bug"
  2. Ticket change [20546173e8] (rid 91294) by andreas_kupries on 2002-01-08 04:58:13:

    1. closedate changed to: "2002-01-07T21:58:13"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      Logged In: YES 
      user_id=75003
      
      From the chat
      
      gpaku: when you have time, we should discuss Tcl Bug 
      497437. 
      dgpabout some errors in the "standard channels" 
      documentation., 
      akuOk, time is now available. 
      dgpgot the report? 
      akuI believe the item is invalid. Reason. You call 
      Tcl_GetStdChannel (STDIN). This initializes stdin. The 
      function calls Tcl_RegisterChannel to register it at the 
      interp. Tcl_RegisterChannel calls GetChannelTable to 
      create/retrieve the structure to register the channel in. 
      This function initializes all three standard channels 
      akuAs for the second part I agree with you that it is 
      not only easier to make the code consistent with the docs, 
      but also easier to understand for a user of the library. 
      * dgp goes source diving...  
      akutcl 8.3.4, tclIO.c: Lines 344, 713, 506f 
      akutcl8.4cvs head, tclIO.c, lines 362, 763, 525f 
      dgpD'oh! 
      dgpCancel the whole report.  It's fine. 
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"