Skip to content
Tcl Source Code Artifact [14a5d8e55f]
Login

Artifact [14a5d8e55f]

Artifact 14a5d8e55fff3d8347d48cd91ca1b97d36fc527a:

Ticket change [14a5d8e55f] - New ticket [218395ffffffffff|218395ffff] <i>precision of errorCode CHILDSTATUS pid returnCode</i>. by nobody on 2000-10-26 00:57:04.
D 2000-10-26T00:57:04
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5172\sBug\nVersion:\s8.3\nSubmitDate:\s'2000-04-19'\nLastModified:\s'2000-04-20'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\sericm\nOS:\sWindows\sNT\nOSVersion:\s4.0\nMachine:\sDell\sOptiplex\sGX1\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-04-20'\n\n\nName:\nChristophe\sDe\sClercq\n\nReproducibleScript:\n1)\screate\sany\sprogram\sthat\sreturns\sa\svalue\sgreather\sthan\s127\s(7\sbits)\n2)\son\stcl\sprompt\stype:\s\nset\smyVar\s[catch\s{exec\sanyProg}\smyResult]\nputs\sstdout\s$errorCode\n\nObservedBehavior:\nif\s"anyProg.exe"\sreturns\sthe\sinteger\svalue\sof\s"200006"\nthe\svalue\sof\s"errorCode"\sbecomes\s=>\s"CHILDSTATUS\s-1\s70"\n\nPossible\sexplanation:\n200006\sis\sbinary:\s110000110101000110\n\s\s\s\s70\sis\sbinary:\s\s\s\s\s\s\s\s\s\s\s\s1000110\n\nIt\swould\smean\sthat\sthe\sprecision\sis\sonly\s7\sbit\s(unsigned\sinteger?)\nIt\stried\sto\sset\sthe\svariable\stcl_precision\sbut\sthis\shas\sno\simpact.\n\nDesiredBehavior:\nI\sexpect\sthe\svalue\sof\s"errorCode"\sto\sbe\s=>\s"CHILDSTATUS\s-1\s200006"\n\nWe\suse\sa\slot\sof\sC\sprograms\sthat\sreturn\s"long\sintegers"\sthis\swould\smean\na\slot\sof\srecoding\sif\sonly\s7\sbits\sare\sinterpreted\sby\sTCL.\n\n\n\nAccording\sto\sthe\sMSDN:\n\n\s\s\s\svoid\sexit\s(\sint\sstatus\s);\n\s\s\s\svoid\s_exit\s(\sint\sstatus\s);\n\n\s\s\s\s...\n\n\s\s\s\sAlthough\sthe\sexit\sand\s_exit\scalls\sdo\snot\sreturn\sa\svalue,\sthe\n\s\s\s\slow-order\sbyte\sof\sstatus\sis\smade\savailable\sto\sthe\swaiting\scalling\n\s\s\s\sprocess,\sif\sone\sexists\s...\n\nThis\sindicates\sthat,\sas\son\sUNIX,\sthe\sreturn\svalue\sfrom\sa\sprogram\sis\nlimited\sto\sthe\slow-order\s8\sbytes\sof\sthe\svalue\syou\sgive\sto\sexit.\s\sThis\sis\nnot\sa\sTcl\slimitation.\n\n-\seric\n\s\n--\s04/20/2000\sericm
J foundin obsolete:\s8.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title precision\sof\serrorCode\sCHILDSTATUS\spid\sreturnCode
J type Bug
K 218395ffffffffffffffffffffffffffffffffff
U nobody
Z f4f2bde618f6b1cb893e11eeb84bd97c