Skip to content
Tcl Source Code Artifact [a47170cc4f]
Login

Artifact [a47170cc4f]

Artifact a47170cc4f9aa6bb8b70a7e60f6d2844375bed1ad37c7d65c9e741b99345c786:

Ticket change [a47170cc4f] - Ticket [0f1ddc0df7fb734c|0f1ddc0df7] <i>exec does not handle encoding</i> status still Open with 3 other changes by pointsman on 2023-11-27 20:07:27.
D 2023-11-27T20:07:27.129
J icomment Perhaps\sthe\sbetter\sworkaround\sfor\sthe\sgiven\sexample\swould\sbe:\r\n<code>\r\nset\sfd\s[open\s|$cmd]\r\nfconfigure\s$fd\s-profile\sreplace\r\nputs\s"ret:[read\s$fd]"\r\n</code>\r\n\r\nWhile\sit\sis\strue\sthat\sexec\sis\ssimple-minded\swrt\sto\sthe\sencoding\sof\sthe\sstdin,\sstdout\s(and\sstderr)\sof\sthe\sstarted\sprocess\sthe\score\sproblem\shere\sare\sthe\schanges\sin\sthe\sI/O\ssystem\sof\sTcl\s9,\sespecially\sTIP\s657.\r\n\r\nPlease\snote\sthat\sthis\sis\san\simprovement.\sWith\sTcl\s8.6\sthe\scode\sexample\sprovided\sby\sPaul\sshow\sa\swrong\sresult\swithout\sa\schance\sthat\sthe\sprogramm\s/\sprogrammer\sis\sable\sto\snotice.\r\n\r\nBut\sperhaps\sit\swould\sbe\sbetter\sif\sexec\swould\sopen\sthe\schannels\salways\swith\s-profile\sreplace.\sTIP\s657\salready\shas\sthe\sexception\sof\sthe\sglob\scommand\s(and\saccess\sto\sthe\senv\sarray).\sThis\swould\sbe\sanother\sone,\sfor\sreasons.
J login pointsman
J mimetype text/x-markdown
K 0f1ddc0df7fb734cf1cba12ac7c529d29fefb842
U pointsman
Z 58a325f08135a97bf16abca852d1badc