<i>Tcl 9: fcopy with -strictencoding 1 UTF-8 channels</i> status still Open with 3 other changes
by
.
D 2023-01-26T15:19:14.542
J icomment >\sIf\sthe\schannel\sdoesn't\shave\s-command\sspecified,\san\sexception\sshould\sbe\sthrown\r\n>\swhen\san\sencoding\serror\soccurs.\sIf\s-command\sis\sspecified,\sthe\scommand\r\n>\swill\sbe\scalled\swith\s2\sarguments\s\r\n\r\nYes,\sof\scourse\s-\sraise\serror\sin\scase\sof\sworking\snot\sin\sthe\sbackground\sand\sif\sworking\sin\sthe\sbackground\sthen\suse\sthe\salready\sestablished\serror\sreporting\sway\svia\ssecond\sargument\sto\sthe\scallback.\r\n\r\n>\sAnother\stweak:\saccording\sto\sthe\sdocumentation:\shttps://core.tcl-lang.org/tcl/file?name=doc/fcopy.n&ci=f9cdaa50ad760a0c&ln=29-30\r\n\r\nJust\sas\snote:\sThe\schan\scommand\sdocumentation\sshould\sbe\supdated\saccording\sto\sall\sfcopy\sdocumentation\schange.\r\n\r\n>\sFor\sTcl\s9.0,\sit\sshould\sbecome:\ssize\sis\sin\sbytes\sif\sthe\sinput\schannel\sis\sin\sbinary\smode,\sand\sis\sin\scharacters\sotherwise.\s\r\n\r\nThat\swould\sbe\salong\sthe\slines\sof\show\sit\sit\sis.\sTo\sbe\ssure:\sYou\smean\sindependent\sof\s-strict\sstatus\sof\sthe\schannels?\r\n\r\nI'm\snot\sso\ssure\sif\sthis\sis\swhat\sis\sneeded\sin\spractice\s(say,\scopy\sfile\sfrom\sserver\sand\sthe\ssize\sof\sthe\sfile\sto\sexpect\sis\sgiven\s(typically)\sin\sbytes\sin\sthe\sheader)\sbut\sthis\sis\scleary\soutside\sthe\sscope\sof\sthis\sticket.\s\r\n\r\nSo,\sI\sguess:\sYes,\sI\sagree\swith\srespect\sto\sTcl\s9.\r\n\r\nFor\s8.7\sthe\sproposed\srule\swould\seven\sbe\smore\scomplicated\sas\sit\salread\sis:\s-size\sis\sinterpreted\sas\sbytes\sfor\sbinary\schannels\s_and_\sif\sthe\schannels\shave\sthe\ssame\sencoding\sand\sno\s-strict\s1.\sBut\sthat\smay\sbe\sindispensable.
J login pointsman
J mimetype text/x-fossil-plain
K 4a7397e0b3d60f1aebf50331b748da9493dba07d
U pointsman
Z 760de8f704ab72bc2854e2be4fc29520