Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 60a4d9286332443c70c14253654097b8013a2de3
Ticket: 1663473fffffffffffffffffffffffffffffffff
binary scan seems to be losing bits
User & Date: hobbs on 2007-02-20 06:59:23
Changes

  1. closedate changed to: "2007-02-19T23:59:23"
  2. closer changed to: "hobbs"
  3. icomment:
    Logged In: YES 
    user_id=72656
    Originator: NO
    
    Using tkcon:
    
    (Tcl) 51 % binary scan \x07\x87\x05 b5b* var1 var2
    2
    (Tcl) 52 % binary scan \x07\x87\x05 b* var3
    1
    (Tcl) 53 % dump var var*
    set ::var1 11100
    set ::var2 1110000110100000
    set ::var3 111000001110000110100000
    
    You see that the missing 000 would be the first part of var2 - IOW, extraneous bits.  I don't see a bug here.  The values are correct, it is just that Tcl does format with all the preceding 0s.
    
    
  4. login: "hobbs"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "hobbs"