Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ff7117aebf856a41428028488abd28174c70a125
Ticket: 2b6a4fa5ed30b44364b1cb31aa8aa574e9b003a0
Tcl_ObjPrintf does not print wide ints with %ld
User & Date: apnadkarni on 2015-12-09 03:54:09
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Using the %ld specifier and passing in a wide int results in printing of only the low 32 bits (possibly the high 32 on big endian machines). The man page says:
    
    "The formatting is done with the same core formatting engine used by Tcl_Format. This means the set of supported conversion specifiers is that of the format command..."
    
    Both format and Tcl_Format handle %ld correctly which implies Tcl_ObjPrintf should as well but it does not.
    
  5. foundin changed to: "8.6.4"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "apnadkarni"
  13. subsystem changed to: "10. Objects"
  14. title changed to: "Tcl_ObjPrintf does not print wide ints with %ld"
  15. type changed to: "Bug"