Skip to content
Tcl Source Code Artifact [e7a13b6c04]
Login

Artifact [e7a13b6c04]

Artifact e7a13b6c044b0c68f19a8b55894e8de15f311028:

Ticket change [e7a13b6c04] - Ticket [3307281fffffffff|3307281fff] <i>Tcl_SetStdChannel not respected by &#39;puts&#39;</i> status still Open with 4 other changes by ferrieux on 2011-05-25 14:16:11.
D 2011-05-25T14:16:11
J icomment Oh,\sI\scan\ssee\sthe\slogic:\sin\sthe\scode\spath\sthat\syou\sdescribe,\sthe\s"stdout"\svalue\sis\sfirst\sused\swhen\spointing\sto\s(say)\sChannel1,\sso\sas\sa\sside-effect\sof\sthis\saccess,\san\sintrep\sof\stype\sChannel\sis\scomputed\sand\sattached\sto\sit.\n\sThen\syou\scall\sTcl_SetStdChannel(OUT,Channel2)\sbut\sthere\sis\sno\seasy\sway\s\sto\sseek\s&\sdestroy\sall\sinstances\sof\sthis\sassociation\s("stdout",\sChannel1),\sso\sit\sremains\sin\saction.\n\nIf\sthis\sinterpretation\sis\sright,\sa\sworkaround\sis\sto\sforce\sa\sshimmer\son\sthe\s"stdout"\svalue,\seg\sby\sconverting\sit\sto\sa\sList\sor\ssimply\sinvalidating\sthe\sintrep\ssince\syou're\sat\sC\slevel.\sThen\son\snext\sIO\saccess,\sthe\sintrep\swill\sbe\srecomputed\sin\saccordance\swith\sthe\snew\sredirection.\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3307281fffffffffffffffffffffffffffffffff
U ferrieux
Z 387f12dd8995103b69ed0447893a5427