: <i>why execute the same script in Solaris and AIX is different?</i> plus 8 other changes
by
.
D 2006-11-22T00:07:44
J closedate 2006-11-21T17:07:44
J closer dgp
J icomment Logged\sIn:\sYES\s\nuser_id=80530\nOriginator:\sNO\n\n\nTcl\s8.4.0\sadded\s"wide"\sintegers\sback\sin\s2002,\nand\swhen\sthey\scame\sin,\ssome\sof\sthe\nrules\sfor\sinterpreting\sthe\svalue\nof\sliterals\schanged\sto\ssupport\sthem.\nIn\sthis\scase,\sthe\sliteral\s"0x80000001"\nnow\smeans\s"2147483649"\sand\snot\s"-2147483647".\nSee\sTIP\s72\sfor\sdetails.\n\nThis\sis\sentirely\sa\sTcl\s8.3\s->\s8.4\nchange.\s\sPlatform\sswitch\shas\snothing\nto\sdo\swith\sit\sin\sthis\scase.\s\sSee\nthese\sinteractive\ssessions\son\none\ssystem:\n\n%\sinfo\spatch\n8.3.5\n%\sset\sx\s0x80000001\n0x80000001\n%\sset\sy\s-2147483647\n-2147483647\n%\sexpr\s{$x==$y}\n1\n\n%\sinfo\spatch\n8.4.15\n%\sset\sx\s0x80000001\n0x80000001\n%\sset\sy\s-2147483647\n-2147483647\n%\sexpr\s{$x==$y}\n0\n\nPlease\snote\sthat\syour\scode\nhas\snever\sbeen\sportable\sto\na\s64-bit\ssystem:\n\n%\sinfo\spatch\n8.3.5\n%\sset\sx\s0x80000001\n0x80000001\n%\sset\sy\s-2147483647\n-2147483647\n%\sexpr\s{$x==$y}\n0\n\nThe\sonly\sportable\sway\sto\slimit\ninteger\svalues\sexactly\sto\sa\n32-bit\srange\sin\s[expr]\sis\swith\smasking:\n\n%\sexpr\s{($x&0xFFFFFFFF)==($y&0xFFFFFFFF)}\n1\n\nAlternatively,\syou\smight\swant\sto\n[binary\sformat]\syour\svalues\sand\scompare\nthe\sresulting\sbyte\ssequences,\sif\sthat's\nthe\scomparison\syou're\sreally\strying\nto\saccomplish.\n\n%\sset\sbx\s[binary\sformat\si\s$x]\n\n%\sset\sby\s[binary\sformat\si\s$y]\n\n%\sexpr\s{$bx\seq\s$by}\n1\n\n
J login dgp
J mimetype text/plain
J resolution Invalid
J status Closed
J subsystem 48.\sNumber\sHandling
J username dgp
K 1600214fffffffffffffffffffffffffffffffff
U dgp
Z 283459ac066cbbe19c2f69fc761b5654