|
2006-10-26
| ||
| 00:04 | • Closed ticket [1584579fff]: format incorrectly formats hexadecimal zero pl... artifact: 92e8914e7d user: dgp | |
| 00:00 | • Ticket [1584579fff]: 6 changes artifact: 632c01317e user: dgp | |
|
2006-10-25
| ||
| 16:43 | • New ticket [1584579fff]. artifact: ad832627e8 user: nobody | |
[format] incorrectly formats hexadecimal zero
Closed / Invalid1584579fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 20 years ago
Descriptionplain2006-10-25 16:43:15
On 8.4, when the value passed to [format "%#04" ] is zero, the command returns "0000" instead of "0x00". $ tclsh8.4 % puts [format "%#04x %#04x" 0 1] 0000 0x01 % exit $ tclsh8.5 % puts [format "%#04x %#04x" 0 1] 0x00 0x01 % exit Platform: NetBSD [email protected]
dgpplain2006-10-26 00:00:12
Logged In: YES user_id=80530 Any chance this is really a bug in Tcl 8.4, that's been fixed in 8.5 ?
dgpplain2006-10-26 00:04:26
Logged In: YES user_id=80530 8.5 behavior matches the documentation for the "#" conversion specifier. Looks like a bug fix to me.
Log in (anonymous is fine) to add a comment.