Skip to content
Tcl Source Code Artifact [1ac01c4304]
Login

Artifact [1ac01c4304]

Artifact 1ac01c43048f8a921b8efacff65b32d22c11108e:

Ticket change [1ac01c4304] - New ticket [218684ffffffffff|218684ffff] <i>errors on manual page of binary command</i>. by nobody on 2000-10-26 01:04:06.
D 2000-10-26T01:04:06
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1733\sBug\nVersion:\s8.0.5\nSubmitDate:\s'1999-04-06'\nLastModified:\s'1999-04-09'\nSeverity:\sMED\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\ssurles\nOS:\sDigital\sUnix\nOSVersion:\sV4.0\s878\nMachine:\sOther\nFixedDate:\s'1999-04-09'\nFixedInVersion:\s8.1b3\nClosedDate:\s'2000-10-25'\n\n\nName:\nMassimo\sFoppa\sUberti\n\nComments:\nI\shave\sreplaced\sthe\s(correct)\sexamples:\n\s\s\s\sbinary\sformat\sc3cc*\s{3\s-3\s128\s1}\s257\s{2\s5}\n\s\s\s\swill\sreturn:\n\s\s\s\s\\x03\\xfd\\x80\\x01\\x02\\x05\n\s\s\s\s\n\s\s\s\sbecause\sthe\svalue\sx01\sgenerated\sby\s257\scan\sgenerate\sconfusion\swith\sthe\n\s\s\s\svalue\s1\n\s\s\s\sthat\sis\sdiscarded\n\nObservedBehavior:\nsome\sexamples\sin\sthe\smanual\spage\sof\sbinary\scommand\shave\swrong\sresults.\n\s\s\s\sThere\sare\sseveral\sother\smistakes.\n\nPatch:\n***\sbinary.n.old\s\s\s\s\s\s\s\sTue\sApr\s\s6\s12:48:01\s1999\n---\sbinary.n.new\s\s\s\s\s\s\s\sTue\sApr\s\s6\s13:12:05\s1999\n***************\n***\s119,125\s****\n\s\s.CS\n\s\s\\fBbinary\sformat\sh3h*\sAB\sdef\\fR\n\s\s.CE\n!\swill\sreturn\sa\sstring\sequivalent\sto\s\\fB\\\\xba\\\\xed\\\\x0f\\fR.\n\s\s.RE\n\s\s.IP\s\\fBH\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBh\\fR\sexcept\sthat\sthe\sdigits\sare\sstored\sin\n---\s119,125\s----\n\s\s.CS\n\s\s\\fBbinary\sformat\sh3h*\sAB\sdef\\fR\n\s\s.CE\n!\swill\sreturn\sa\sstring\sequivalent\sto\s\\fB\\\\xba\\\\x00\\\\xed\\\\x0f\\fR.\n\s\s.RE\n\s\s.IP\s\\fBH\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBh\\fR\sexcept\sthat\sthe\sdigits\sare\sstored\sin\n***************\n***\s128,134\s****\n\s\s.CS\n\s\s\\fBbinary\sformat\sH3H*\sab\sDEF\\fR\n\s\s.CE\n!\swill\sreturn\sa\sstring\sequivalent\sto\s\\fB\\\\xab\\\\xde\\\\xf0\\fR.\n\s\s.RE\n\s\s.IP\s\\fBc\\fR\s5\n\s\sStores\sone\sor\smore\s8-bit\sinteger\svalues\sin\sthe\soutput\sstring.\s\sIf\sno\n---\s128,134\s----\n\s\s.CS\n\s\s\\fBbinary\sformat\sH3H*\sab\sDEF\\fR\n\s\s.CE\n!\swill\sreturn\sa\sstring\sequivalent\sto\s\\fB\\\\xab\\\\x00\\\\xde\\\\xf0\\fR.\n\s\s.RE\n\s\s.IP\s\\fBc\\fR\s5\n\s\sStores\sone\sor\smore\s8-bit\sinteger\svalues\sin\sthe\soutput\sstring.\s\sIf\sno\n***************\n***\s142,151\s****\n\s\sthan\s\\fIcount\\fR,\sthen\sthe\sextra\selements\sare\signored.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n!\s\\fBbinary\sformat\sc3cc*\s{3\s-3\s128\s1}\s257\s{2\s5}\\fR\n\s\s.CE\n\s\swill\sreturn\sa\sstring\sequivalent\sto\n!\s\\fB\\\\x03\\\\xfd\\\\x80\\\\x01\\\\x02\\\\x05\\fR,\swhereas\n\s\s.CS\n\s\s\\fBbinary\sformat\sc\s{2\s5}\\fR\n\s\s.CE\n---\s142,151\s----\n\s\sthan\s\\fIcount\\fR,\sthen\sthe\sextra\selements\sare\signored.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n!\s\\fBbinary\sformat\sc3cc*\s{3\s-3\s128\s1}\s260\s{2\s5}\\fR\n\s\s.CE\n\s\swill\sreturn\sa\sstring\sequivalent\sto\n!\s\\fB\\\\x03\\\\xfd\\\\x80\\\\x04\\\\x02\\\\x05\\fR,\swhereas\n\s\s.CS\n\s\s\\fBbinary\sformat\sc\s{2\s5}\\fR\n\s\s.CE\n***************\n***\s186,192\s****\n\s\s\\fBbinary\sformat\si3\s{3\s-3\s65536\s1}\\fR\n\s\s.CE\n\s\swill\sreturn\sa\sstring\sequivalent\sto\n!\s\\fB\\\\x03\\\\x00\\\\x00\\\\x00\\\\xfd\\\\xff\\\\xff\\\\xff\\\\x00\\\\x00\\\\x10\\\\x00\\fR.\n\s\s.RE\n\s\s.IP\s\\fBI\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBi\\fR\sexcept\sthat\sit\sstores\sone\sor\smore\sone\n---\s186,192\s----\n\s\s\\fBbinary\sformat\si3\s{3\s-3\s65536\s1}\\fR\n\s\s.CE\n\s\swill\sreturn\sa\sstring\sequivalent\sto\n!\s\\fB\\\\x03\\\\x00\\\\x00\\\\x00\\\\xfd\\\\xff\\\\xff\\\\xff\\\\x00\\\\x00\\\\x01\\\\x00\\fR.\n\s\s.RE\n\s\s.IP\s\\fBI\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBi\\fR\sexcept\sthat\sit\sstores\sone\sor\smore\sone\n***************\n***\s197,203\s****\n\s\s\\fBbinary\sformat\sI3\s{3\s-3\s65536\s1}\\fR\n\s\s.CE\n\s\swill\sreturn\sa\sstring\sequivalent\sto\n!\s\\fB\\\\x00\\\\x00\\\\x00\\\\x03\\\\xff\\\\xff\\\\xff\\\\xfd\\\\x00\\\\x10\\\\x00\\\\x00\\fR.\n\s\s.RE\n\s\s.IP\s\\fBf\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBc\\fR\sexcept\sthat\sit\sstores\sone\sor\smore\sone\n---\s197,203\s----\n\s\s\\fBbinary\sformat\sI3\s{3\s-3\s65536\s1}\\fR\n\s\s.CE\n\s\swill\sreturn\sa\sstring\sequivalent\sto\n!\s\\fB\\\\x00\\\\x00\\\\x00\\\\x03\\\\xff\\\\xff\\\\xff\\\\xfd\\\\x00\\\\x01\\\\x00\\\\x00\\fR.\n\s\s.RE\n\s\s.IP\s\\fBf\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBc\\fR\sexcept\sthat\sit\sstores\sone\sor\smore\sone\n***************\n***\s318,324\s****\n\s\sthe\sscanned\svalue\sbefore\sit\sis\sstored\sin\sthe\svariable.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n!\s\\fBbinary\sscan\s"abc\sefghi\s\s\\\\000"\sa*\svar1\\fR\n\s\s.CE\n\s\swill\sreturn\s\\fB1\\fR\swith\s\\fBabc\sefghi\\fR\sstored\sin\s\\fBvar1\\fR.\n\s\s.RE\n---\s318,324\s----\n\s\sthe\sscanned\svalue\sbefore\sit\sis\sstored\sin\sthe\svariable.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n!\s\\fBbinary\sscan\s"abc\sefghi\s\s\\\\000"\sA*\svar1\\fR\n\s\s.CE\n\s\swill\sreturn\s\\fB1\\fR\swith\s\\fBabc\sefghi\\fR\sstored\sin\s\\fBvar1\\fR.\n\s\s.RE\n***************\n***\s338,348\s****\n\s\s\\fB1110000110100000\\fR\sstored\sin\s\\fBvar2\\fR.\n\s\s.RE\n\s\s.IP\s\\fBB\\fR\s5\n!\sThis\sform\sis\sthe\ssame\sas\s\\fBB\\fR,\sexcept\sthe\sbits\sare\staken\sin\n\s\shigh-to-low\sorder\swithin\seach\sbyte.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n!\s\\fBbinary\sscan\s\\\\x70\\\\x87\\\\x05\sb5b*\svar1\svar2\\fR\n\s\s.CE\n\s\swill\sreturn\s\\fB2\\fR\swith\s\\fB01110\\fR\sstored\sin\s\\fBvar1\\fR\sand\n\s\s\\fB1000011100000101\\fR\sstored\sin\s\\fBvar2\\fR.\n---\s338,348\s----\n\s\s\\fB1110000110100000\\fR\sstored\sin\s\\fBvar2\\fR.\n\s\s.RE\n\s\s.IP\s\\fBB\\fR\s5\n!\sThis\sform\sis\sthe\ssame\sas\s\\fBb\\fR,\sexcept\sthe\sbits\sare\staken\sin\n\s\shigh-to-low\sorder\swithin\seach\sbyte.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n!\s\\fBbinary\sscan\s\\\\x70\\\\x87\\\\x05\sB5B*\svar1\svar2\\fR\n\s\s.CE\n\s\swill\sreturn\s\\fB2\\fR\swith\s\\fB01110\\fR\sstored\sin\s\\fBvar1\\fR\sand\n\s\s\\fB1000011100000101\\fR\sstored\sin\s\\fBvar2\\fR.\n***************\n***\s365,371\s****\n\s\s.RE\n\s\s.IP\s\\fBH\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBh\\fR,\sexcept\sthe\sdigits\sare\staken\sin\n!\slow-to-high\sorder\swithin\seach\sbyte.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n\s\s\\fBbinary\sscan\s\\\\x07\\\\x86\\\\x05\sH3H*\svar1\svar2\\fR\n---\s365,371\s----\n\s\s.RE\n\s\s.IP\s\\fBH\\fR\s5\n\s\sThis\sform\sis\sthe\ssame\sas\s\\fBh\\fR,\sexcept\sthe\sdigits\sare\staken\sin\n!\shigh-to-low\sorder\swithin\seach\sbyte.\s\sFor\sexample,\n\s\s.RS\n\s\s.CS\n\s\s\\fBbinary\sscan\s\\\\x07\\\\x86\\\\x05\sH3H*\svar1\svar2\\fR\n\nPatchFiles:\n.../tcl8.0.5/doc/binary.n\n\n\n\n04/09/1999\s12:11\s-\ssurles\s-\sApplied\sall\schanges.
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 46.\sTraces
J title errors\son\smanual\spage\sof\sbinary\scommand
J type Bug
K 218684ffffffffffffffffffffffffffffffffff
U nobody
Z 758b4f728fcc5f2b51b9b4a329a5d779