Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 46c93e9a7d41850f5b4399e53fc549e9e6bb6d5a
Ticket: 1117017fffffffffffffffffffffffffffffffff
Manpage inconsistent for binary scan
User & Date: mic42 on 2005-02-05 20:54:43
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The man page for binary scan is not consistent on its
    treatment of unsigned vs signed issues.
    
    In the general part it recommends to use masking with
    0xff..., while in the specific parts for c and s format
    specifiers it tells one should use expr (0x100+$val) %
    0x100
    
    A second smaller issue can be found in the description
    of the 'i' format specifier:
    "Note that the integers returned are signed and cannot
    be represented by Tcl as unsigned values. "
    
    since Tcl 8.4 with wide() its untrue, as we have a
    larger datatype than the signed 32-bit int.
    
    Michael
    
    
  4. foundin changed to: "obsolete: 8.5a2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "mic42"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "Manpage inconsistent for binary scan"
  11. type changed to: "Bug"