<i>[file copy] return value inconsistency</i> status still Open with 4 other changes
by
.
D 2012-12-18T04:00:44
J icomment The\sdiscrepancy\scomes\sfrom\sa\sdifferent\sattitude\svarious\sparts\sof\sthe\scode\stowards\sinterp-passing:\n\s-\sTclCopyChannel\s(aka\sfcopy),\swhich\sis\sused\sfor\sthe\scross-fs\scase,\stakes\san\sinterp\sand\sis\sdocumented\sto\sset\sthe\sresult\sto\sthe\snumber\sof\sbytes\stransferred\n\s-\sThe\sper-fs\s->copyFileProc,\sused\sotherwise\sfor\sperformance\sreasons\s(and\sits\sability\sto\scopy\slinks),\shappens\sto\stake\sno\sinterp,\sand\sto\sreturn\sonly\sTCL_OK\sor\sTCL_ERROR.\n\nAs\sa\sconsequence,\sdirectly\sreturning\sthe\snumber\sof\sbytes\sfrom\scopyFileProc\sseems\sout\sof\sreach\swithin\s8.x\s(compat).\nOne\spossibility\sthough,\swould\sbe\sto\sstat()\sthe\sjust-copied\ssource\sor\sdest\sfile,\sbut\sthat's\sugly,\sslow,\sand\ssubject\sto\srace\sconditions.\sAny\sbetter\sidea\sappreciated.\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3597000fffffffffffffffffffffffffffffffff
U ferrieux
Z 140b6784da87445fe6a82aa659f569a5