Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a1794fa68091fa4429b7cb5671942dbd804b7ae
Ticket: 217918ffffffffffffffffffffffffffffffffff
binary scan problem with 16 bit integers > 0x8000
User & Date: nobody on 2000-10-26 00:45:58
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3229 Bug
    Version: 8.0.4
    SubmitDate: '1999-10-28'
    LastModified: '1999-11-08'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 3466
    OS: Linux
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '1999-11-08'
    
    
    Name:
    Bob Findlay
    
    ReproducibleScript:
    #!/usr/bin/tclsh
        set bob1 0x8000
        set bob2 [binary format "s1" $bob1]
        binary scan $bob2 s1 bob3
        puts stdout [format "bob1=%X bob3=%X" $bob1 $bob3]
    
    ObservedBehavior:
    It seems once the lead bit in a 16 bit integer is set the binary
        scan command seems to prepend the result with 0xffff
        
        This does not seem like the correct behavior.
    
    DesiredBehavior:
    I would have expected that binary scan would return with the 16 bit
        value 
        without the prepended 0xffff
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.0.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "binary scan problem with 16 bit integers > 0x8000"
  11. type changed to: "Bug"