Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Binary command documentation error

Closed / Fixed218432ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:57:32
OriginalBugID: 6035 Bug
Version: 8.3.1
SubmitDate: '2000-07-21'
LastModified: '2000-07-21'
Severity: LOW
Status: Closed
Submitter: angie
ChangedBy: ericm
OS: Windows NT
OSVersion: 4.0sp6a
Machine: dual pentium pro 200mhz, 256mb
FixedDate: '2000-10-25'
ClosedDate: '2000-07-21'


Tcl 8.3.1 Bug

Name:  David LeBlanc
email:  [email protected]
Support:  None
Severity:  4
OperatingSystem:  Windows NT
OperatingSystemVersion:  4.0sp6a
Machine:  dual pentium pro 200mhz, 256mb.
Extensions:  none
Synopsis:  Binary command documentation error

ReproducibleScript:
read the binary command page in the (at least windows) help.

ObservedBehavior:
This command provides facilities for manipulating binary data.  The first form, binary format, creates a binary string from normal Tcl values.  For example, given the values 16 and 22, it might produce an 8-byte binary string consisting of two 4-byte integers, one for each of the numbers.  The second form of the command,  binary scan, does the opposite: it extracts data from a binary string and returns it as ordinary Tcl string values.  

DesiredBehavior:
This command provides facilities for manipulating binary data.  The first form, binary format, creates a binary string from normal Tcl values.  For example, given the values 16 and 22, it might produce an 8-bit binary string consisting of two 4-bit integers, one for each of the numbers.  The second form of the command,  binary scan, does the opposite: it extracts data from a binary string and returns it as ordinary Tcl string values.  

Patch:
"Expected behavior" (item 10) has the corrected text.
Posted To comp.lang.tcl: Posted Successfully



I believe the documentation is correct as is, at least for 32 bit platforms.  I will note in the documentation that the example is for a 32 bit platform.

   Eric Melski                            The Other Tcl Guy
   ericm at ajubasolutions.com            Ajuba Solutions

-- 07/21/2000 ericm
welch Closed ticket [218432ffff]. [History diff]2000-10-26 08:22:15
dgp Ticket [218432ffff]: 3 changes [History diff]2001-04-20 02:33:08
Log in (anonymous is fine) to add a comment.