Artifacts Associated With Ticket 2b6a4fa5ed
Ticket change [ff7117aebf] (rid 144022) by apnadkarni on 2015-12-09 03:54:09:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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.
- foundin initialized to: "8.6.4"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "10. Objects"
- title initialized to: "Tcl_ObjPrintf does not print wide ints with %ld"
- type initialized to: "Bug"
Ticket change [5c82894dca] (rid 144027) by dgp on 2015-12-09 17:43:59:
- assignee changed to: "dgp"
- icomment:
http://core.tcl.tk/tcl/artifact/24d36182565d6b2b?ln=2586
- login: "dgp"
- mimetype: "text/plain"
Ticket change [c5c049c346] (rid 144028) by dgp on 2015-12-09 17:50:44:
- icomment:
This is tricky because the *Printf formatting specs control memory access issues as well as formatting, so you need 4 distinctions to cover the cases (read the argument as int, long, Tcl_WideInt, mp_int), and the [format] engine only supplies 3. What's been done up to now is to make *Printf so what the printf() system calls do.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [01e396e0dc] (rid 162284) by dgp on 2018-04-07 14:57:15:
- closedate changed to: "2458216.1230965"
- closer changed to: "dgp"
- icomment:
TIP 476 corrects this in Tcl 8.7.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"