standard channels not reinitialized correctly on windows
Closed / Invalid2928098fffffffffffffffffffffffffffffffffCreated 17 years agoUpdated 49 days ago
Descriptionplain2010-01-08 08:29:11
as documented here
http://tmml.sourceforge.net/doc/tcl/StdChannels.html
closing one of the standard channels and immediately opening a new channel should replace the recently closed standard channel
here is a test script which demonstrats the problem:
proc stdin {args} {
switch -exact -- [lindex $args 0] {
initialize { return {initialize finalize watch read} }
read {
return somedata
}
}
}
close stdin
set chan [chan create read stdin]
puts "$tcl_platform(platform): [chan names]"
heres the output:
windows: stdout rc0 stderr
unix: stdin stdout stderr
dgpplain2010-01-08 22:10:06
Isn't this just the incompatibility introduced by 2849797 ?
dgp Ticket [2928098fff]: 3 changes
[History diff]2010-01-08 22:10:07
dkfplain2010-01-08 22:52:18
might be; it's a mess for sure
nijtmansplain2010-01-08 23:57:46
>Isn't this just the incompatibility
>introduced by 2849797 ?
No, it isn't: Tcl 8.5 gives exactly
the same result, while #2849797
was only applied to Tcl 8.6.
Conclusion: This bug probably
exists in all 8.x versions of Tcl.
Regards,
Jan Nijtmans
dkfplain2010-01-20 16:25:49
What happens when a real OS channel is used instead of a synthetic channel?
dkfplain2010-01-20 16:26:37
(I'm not able to test easily, so I have to debug by asking...)
dkf Open ticket [2928098fff].
[History diff]2010-01-20 16:26:38
dkf Pending ticket [2928098fff].
[History diff]2012-05-30 17:30:04
serhiy.storchakawiki2026-10-15 11:29:05
Closing: no reply since 2012.
Log in (anonymous is fine) to add a comment.