Overview
| Artifact ID: | 7f358d65df624772385aa484611c7ba1f67b1098 |
|---|---|
| Ticket: | 497437ffffffffffffffffffffffffffffffffff
errors in doc/StdChannels.3 |
| User & Date: | dgp on 2001-12-28 22:17:38 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- 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. - foundin changed to: "obsolete: 8.4a4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "25. Channel System"
- title changed to: "errors in doc/StdChannels.3"
- type changed to: "Bug"