Skip to content
Tcl Source Code Artifact [7bc473235d]
Login

Artifact [7bc473235d]

Artifact 7bc473235dcee8c02051be513d95e7ae729ecf98:

Ticket change [7bc473235d] - Ticket [1027690fffffffff|1027690fff] <i>read $channel [file size &quot;myfile&quot;] doesn&#39;t work in 8.4 head</i> status still Open with 4 other changes by wobster on 2004-09-14 17:43:46.
D 2004-09-14T17:43:46
J icomment Logged\sIn:\sYES\s\nuser_id=60261\n\nThanks\sfor\sthe\stip.\sIt\sappears\sthat\sthe\sproblem\sis\nOS-specific.\sIt\sdoesn't\swork\son\sSolaris\sand\sIrix,\sbut\sdoes\non\sLinux.\n\nActually,\sit\slooks\slike\sit's\sa\sproblem\swith\sread.\sI\stried\nthis\stest\sas\swell:\n\n%\spwd\s\s\s\s\n/tmp/bak/tcl8.4.7/unix\n%\sset\sf\s[open\s"Makefile"\sr]\nfile6\n%\sputs\s[file\ssize\s"Makefile"]\n50346\n%\sread\s$f\s[file\ssize\s"Makefile"]\n%\sread\s$f\s$size\s;\s#\snothing\sprinted\n%\sread\s$f\s50346\n#\sGenerated\sautomatically\sfrom\sMakefile.in\sby\sconfigure.\n...\n\nFor\ssome\sreason,\sthis\sworks\sas\swell:\nread\s$f\s[expr\s[file\ssize\s"Makefile"]\s-\s1]\n\nThe\sfile\ssize\sis\sactually\s50346\sby\sthe\sway\saccording\sto\s"ls\n-l"\sand\s"wc\s-c".\n\n\n
J login wobster
J mimetype text/plain
J username wobster
K 1027690fffffffffffffffffffffffffffffffff
U wobster
Z c5943c1b10031c86458147d0329c9dec