Artifacts Associated With Ticket 1284178fffffffffffffffffffffffffffffffff
Ticket change [3fc5838fb3] (rid 121520) by dgp on 2005-09-07 18:17:48:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
% format %hu 0xffff 65535 % format %hu 0x10000 0 % format %hu 0xffffffff 65535 % format %hu 0x100000000 integer value too large to represent It's clear that %hu truncates to short int size before formatting, but fails to do the same truncation when given a wide integer value. It just rejects those, without a good reason.
- foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "[format %h?] rejects valid integers"
- type initialized to: "Bug"
Ticket change [ae2493a948] (rid 101590) by dgp on 2005-09-08 01:29:50:
- icomment:
Logged In: YES user_id=80530 A related issue is integer [format]s without a length specifier, for example: % format %u 0xffffffff 4294967295 % format %u 0x100000000 integer value too large to represent As with the "h"-constrained formatting, we could truncate to the native length of a long before formatting and accept the wide argument. Doing that would produce: % format %hu 0x100000000 0 However, this behavior is actually tested by the test suite via tests format-17.1 and format-18.2 . The restriction and these test don't really make sense to me, but perhaps a maintainer knows better?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [8f16c9d909] (rid 120223) by dgp on 2005-09-08 01:34:03:
- icomment:
Logged In: YES user_id=80530 Here's a patch that makes all of [format]'s integer conversion specifiers accept all of Tcl's valid integer values.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [79123a72ff] (rid 90057) by dgp on 2005-09-08 01:34:05:
- icomment:
File Added - 148370: 1284178.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [38d26c81d6] (rid 112278) by dgp on 2005-09-11 08:58:21:
- icomment:
Logged In: YES user_id=80530 Do not accept that patch. It introduces a new bug: % format %ld [expr wide(3000000000)] -1294967296
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1284178.patch" [84417842d5] (rid 117517) by dgp on 2005-09-12 08:54:29.
Ticket change [4d1e21bf77] (rid 127008) by dgp on 2005-09-12 08:54:29:
- icomment:
Logged In: YES user_id=80530 corrected patch now attached
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [be350dc3f4] (rid 102038) by dgp on 2005-09-12 08:54:31:
- icomment:
File Deleted - 148370: File Added - 148760: 1284178.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [0f53f39870] (rid 94771) by dgp on 2005-10-14 00:52:02:
- icomment:
Logged In: YES user_id=80530 fixed on HEAD by TIP 237 merge. Still needs attached patch applied to fix in 8.4.11
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1c2713f94c] (rid 90554) by dkf on 2005-10-14 03:27:51:
- icomment:
Logged In: YES user_id=79902 Fixing this breaks format-17.1 and format-18.2
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [117b9c9051] (rid 95151) by dgp on 2005-10-14 03:40:35:
- icomment:
Logged In: YES user_id=80530 my position is that the tests themselves are broken.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [99e9f6870e] (rid 110873) by dkf on 2005-10-14 04:46:33:
- closedate changed to: "2005-10-13T21:46:33"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Fixed in 8.4 branch.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"