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

Artifact [7edaca24a2]

Artifact 7edaca24a252d8b3e0d9a1026266826738178ed6:

Ticket change [7edaca24a2] - New ticket [1965787fffffffff|1965787fff] <i>8.5.2 &quot;tell&quot; returns neg 32-bit value for positions &gt; 2GB</i>. by nobody on 2008-05-17 03:57:10.
D 2008-05-17T03:57:10
J assignee dkf
J cmimetype text/plain
J comment Tcl\s"tell"\scommand\sreturned\s64-bit\sunsigned\svalues\sstarting\sin\s8.4\sfor\suse\sin\smanaging\sfiles\s>2GB.\n\nTcl\s"tell"\scommand\sin\s8.5.2\sseems\sto\sbe\sreturning\sa\ssigned\svalue\swhich\sappears\s"negative"\sand\sunsuitable\sfor\suse\sin\sTcl\s"seek"\scommand\sfor\sfile\spositions\s>\s2GB.\n\nPlatform:\sXP-SP2,\sbuilds\sbuilt\slocally\swith\sVC++\s2008\sExpress,\salso\sthe\sdistributed\sEqui4\s"tclkit"\sfor\s8.5.2\sproduce\sthis\soutput:\n\n(2008)\s3\s%\sset\stcl_patchLevel\n8.5.2\n(2008)\s4\s%\sset\sfn\s"whopper.bin"\nwhopper.bin\n(2008)\s5\s%\sfile\sstat\s$fn\ss\n(2008)\s6\s%\sset\ss(size)\n3974747277\n(2008)\s7\s%\sset\sf\s[open\s$fn\s"rb"]\nfileb54c58\n(2008)\s8\s%\sseek\s$f\s2147016079\n(2008)\s9\s%\stell\s$f\n2147016079\n(2008)\s10\s%\sread\s$f\s1000000\s;\sset\sx\ncan't\sread\s"x":\sno\ssuch\svariable\n(2008)\s11\s%\stell\s$f\n-2146951217\n(2008)\s12\s%\sseek\s$f\s3974747000\n(2008)\s13\s%\stell\s$f\n-320220296\n\nBy\scomparison\s(same\splatform):\n(2008)\s11\s%\sset\stcl_patchLevel\n8.4.4\n(2008)\s12\s%\sset\sfn\s"whopper.bin"\nwhopper.bin\n(2008)\s13\s%\sfile\sstat\s$fn\ss\n(2008)\s14\s%\sset\ss(size)\n3974747277\n(2008)\s15\s%\sset\sf\s[open\s$fn\s"r"]\s;\sfconfigure\s$f\s-translation\sbinary\n(2008)\s16\s%\sset\sf\nfile9bd888\n(2008)\s17\s%\sseek\s$f\s2147016079\n(2008)\s18\s%\stell\s$f\n2147016079\n(2008)\s19\s%\sread\s$f\s1000000\s;\sset\sx\ncan't\sread\s"x":\sno\ssuch\svariable\n(2008)\s20\s%\stell\s$f\n2148016079\n(2008)\s21\s%\sseek\s$f\s3974747000\n(2008)\s22\s%\stell\s$f\n3974747000\n(2008)\s23\s%\s\n\nDavid\sBurns\s:\sconsollidator<AT>yahoo.com
J foundin obsolete:\s8.5.2
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 18.\sCommands\sM-Z
J title 8.5.2\s"tell"\sreturns\sneg\s32-bit\svalue\sfor\spositions\s>\s2GB
J type Bug
K 1965787fffffffffffffffffffffffffffffffff
U nobody
Z 72e0cde170d24223e929db363d4d2557