<i>[fcopy $chan1 $chan2 -size $size] is not [puts -nonewline $chan2 [read $chan1 -size $size]</i> status still Open with 3 other changes
by
.
D 2023-04-05T22:23:41.224
J icomment >\sI\sdon't\sknow\swhy\sthe\stests\sfail\sonly\swith\sthe\smsvc\sbuild\sthough\r\n\r\nIt's\sbecause\sthe\sgcc\senvironment\suses\sthe\sbash\sshell,\swhich\sreports\sto\sits\sclients\sthat\sthe\ssystem\sencoding\sis\sutf-8.\sThe\sVisual\sStudio\sbuild\senvironment\suses\sthe\snormal\sCMD\sshell,\swhich\shas\sthe\snormal\ssystem\sencoding\son\sWindows.\sSo,\syes,\sthis\sexplains\sthe\sdifference.\r\n\r\nSo,\sthis\sleads\sto\s3\sdifferent\ssolutions.\r\n*\sImplementation\schange:\sWhenever\sChannelState.encoding\sis\sNULL,\smake\ssure\sthat\sTcl_UtfToExternal()\sis\sexplicitly\sgiven\sthe\siso8859-1\sencoding.\r\n*\sdon't\sset\sChannelState.encoding\sto\sNULL\swhen\swe\swant\siso8859-1\r\n*\schange\sTcl_UtfToExternal()\sso\sNULL\smeans\siso8859-1\r\n\r\nI\sthink\sthe\slast\sone\sis\snot\sdesirable\s(would\sneed\sa\sTIP,\sbut\sutf-8\swould\sbe\smore\sreasonable),\sbut\sthe\sother\stwo\sshould\sbe\spossible.
J login jan.nijtmans
J mimetype text/plain
K fa3d9fd818fa0072b60dcd14614ebf33d90e4d6b
U jan.nijtmans
Z 337505e6af8a5b27bae40408d755c8bd