Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1df2c999f4ed2b878b46b8ff2c0ec2fd6871a781
Ticket: 991371ffffffffffffffffffffffffffffffffff
format problem with wide ints
User & Date: bgriffin on 2004-07-15 05:59:38
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    The format command errors out on %d of a wide int, but
    than converts the wide int to int so that subsequent
    format works without error.
    
    Place the following in a file "format_bug.tcl":
    
    set x [file size format_bug.tcl]
    
    puts stdout "First format:" 
    if {[catch {format "%d bytes" $x} res]} {
        puts stdout "Error: $res\nTrace back: $errorInfo" 
    } else {
        puts stdout $res
    } 
    
    puts stdout "Second format:" 
    if {[catch {format "%d bytes" $x} res]} {
        puts stdout "Error: $res\nTrace back: $errorInfo"
    } else {
        puts stdout $res
    } 
    
    Running the above code produces:
    
    First format: 
    Error: 
    Trace back:
        while executing 
    "format "%d bytes" $x" 
    Second format: 
    337 bytes
    
    
  4. foundin changed to: "obsolete: 8.4.6"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "bgriffin"
  9. subsystem changed to: "16. Commands A-H"
  10. title changed to: "format problem with wide ints"
  11. type changed to: "Bug"