Overview
| Artifact ID: | 1df2c999f4ed2b878b46b8ff2c0ec2fd6871a781 |
|---|---|
| Ticket: | 991371ffffffffffffffffffffffffffffffffff
format problem with wide ints |
| User & Date: | bgriffin on 2004-07-15 05:59:38 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.4.6"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "bgriffin"
- subsystem changed to: "16. Commands A-H"
- title changed to: "format problem with wide ints"
- type changed to: "Bug"