<i>Tcl 9: fcopy with -strictencoding 1 UTF-8 channels</i> status still Open with 3 other changes
by
.
D 2023-01-26T07:40:20.880
J icomment >\sJan\sis\sright,\sfcopy\sshould\sthrow\sexecption.\r\n\r\nIf\sthe\schannel\sdoesn't\shave\s-command\sspecified,\san\sexception\sshould\sbe\sthrown\swhen\san\sencoding\serror\soccurs.\sIf\s-command\sis\sspecified,\sthe\scommand\swill\sbe\scalled\swith\s2\sarguments\r\n\r\nAnother\stweak:\saccording\sto\sthe\sdocumentation:\s[https://core.tcl-lang.org/tcl/file?name=doc/fcopy.n&ci=f9cdaa50ad760a0c&ln=29-30]\r\n\r\nThat's\snot\s100%\scorrect\sany\smore.\r\n\r\nFor\sTcl\s8.7,\sit\sshould\sbecome:\ssize\sis\sin\sbytes\sif\sthe\sinput\schannel\sis\sin\sbinary\smode,\sor\sif\sthe\stwo\schannels\sare\susing\sthe\r\nsame\sencoding\sand\s-strict\sis\snot\sspecified.\sOtherwise,\ssize\sis\sin\scharacters.\r\n\r\nFor\sTcl\s9.0,\sit\sshould\sbecome:\ssize\sis\sin\sbytes\sif\sthe\sinput\schannel\sis\sin\sbinary\smode,\sand\sis\sin\scharacters\sotherwise.\r\n\r\nAgreed?
J login jan.nijtmans
J mimetype text/x-fossil-wiki
K 4a7397e0b3d60f1aebf50331b748da9493dba07d
U jan.nijtmans
Z c0a647e690cde84613b8ec5f0aa03f70