Skip to content
Tcl Source Code Artifact [026a0ae8f8]
Login

Artifact [026a0ae8f8]

Artifact 026a0ae8f8ba17609fae32b4315272cadb2d758f:

Ticket change [026a0ae8f8] - Ticket [027ba061a8aac869|027ba061a8] <i>Standard channels do not exist on new threads on Windows</i> status still Open with 3 other changes by anonymous on 2014-09-30 14:10:44.
D 2014-09-30T14:10:44.918
J icomment The\sbehaviour\scan\sbe\sreplicated\sinteractively\sand\snon-interactively,\ssee\smy\scomment\son\s2014-09-26\s06:28:17.\sThe\sprocedure:\spaste\sthe\scode\s(which\sI\sinclude\sat\sthe\send\sof\sthis\smessage)\sin\sfile\s"t.tcl",\sthen\srun\swith\s"wish86.exe\st.tcl".\r\n\r\n*\s*\s*\r\n\r\nSo,\sthe\sissue\sis\sthree-fold:\r\n\s-\sOn\sone\shand\sthere\sis\sa\sfundamental\sinconsistency\sbetween\splatforms\s(there\sis\sno\sstd*\son\sWindows).\sNot\san\sissue,\sexcept\sfor:\r\n\s-\sTk\semulates\sstd*\sinteractively\s*and\snon-interactively*\s(the\slatter\snot\sintended),\sbut\sonly\son\sthe\sfirst\sthread.\r\n\s-\sTcl\sassumes\sthe\sfirst\sthree\schannels\sare\sspecial\s(the\schannel\snames\seven\sappear\sas\s"stdin",\setc.\swhen\sdebugging).\sThis\scauses\sissues\ssuch\sas\sthose\sdescribed\sin\sticket\s7d83d2193d6da63f5ba269bb9e3132074ef8212c.\r\n\r\nThe\slatter\stwo\spoints\sseem\sto\sme\sbugs\sin\sTk\sand\sTcl\srespectively,\sand\sneed\saction\sto\sbe\staken.\sIn\smy\sview,\seither\sof\sthe\sfollowing\sseem\sreasonable:\sa)\sTk\sdoes\snot\screate\sany\schannel\sat\sall\son\sWindows\s(as\spresumed)\sand\sTcl\sdoes\snot\streat\sfirst\sthree\screated\schannels\sas\sspecial,\sor\sb)\sTk\salways\screates\sthree\schannels\s(although\sdummy)\sand\sTcl\scan\skeep\sits\sassumptions.\sThe\slatter\sis\sprobably\sthe\smost\splatform-consistent,\salthough\sthere\smight\sbe\sdrawbacks\sI\sam\smissing\sATM.\r\n\r\nThank\syou\sall,\r\nAdrián.\r\n\r\n~~~\r\npackage\srequire\sThread;\r\nset\stid\s[::thread::create\s{\s::thread::wait;\s}];\r\n::pack\s[::ttk::label\s.l[incr\si]\s-text\s"Patchlevel:\s$::tcl_patchLevel"];\r\n::pack\s[::ttk::label\s.l[incr\si]\s-text\s"Platform:\s[array\sget\s::tcl_platform]"];\r\n::pack\s[::ttk::label\s.l[incr\si]\s-text\s"Main\sthread\schans:\s[::chan\snames]"];\r\n::pack\s[::ttk::label\s.l[incr\si]\s-text\s"Other\sthread\schan\snames:\s[::thread::send\s$tid\s{\s::chan\snames;\s}]"];\r\n::pack\s[::ttk::label\s.l[incr\si]\s-text\s"Other\sthread\sfile\schans:\s[::thread::send\s$tid\s{\s::file\schannels;\s}]"];\r\n~~~
J login anonymous
J mimetype text/plain
K 027ba061a8aac869441267c2aef4c4bf9c705c10
U anonymous
Z ffd34486ac8b9c84d88f86f76e7f40e8