Skip to content
Tcl Source Code History Of Ticket 1284178fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1284178fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1284178fffffffffffffffffffffffffffffffff

  1. Ticket change [3fc5838fb3] (rid 121520) by dgp on 2005-09-07 18:17:48:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.4.11"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "[format %h?] rejects valid integers"
    11. type initialized to: "Bug"
  2. Ticket change [ae2493a948] (rid 101590) by dgp on 2005-09-08 01:29:50:

    1. 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?
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [8f16c9d909] (rid 120223) by dgp on 2005-09-08 01:34:03:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [79123a72ff] (rid 90057) by dgp on 2005-09-08 01:34:05:

    1. icomment:
      
      
      File Added - 148370: 1284178.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [38d26c81d6] (rid 112278) by dgp on 2005-09-11 08:58:21:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Do not accept that patch.
      
      It introduces a new bug:
      
      % format %ld [expr wide(3000000000)]
      -1294967296
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Add attachment "1284178.patch" [84417842d5] (rid 117517) by dgp on 2005-09-12 08:54:29.

  7. Ticket change [4d1e21bf77] (rid 127008) by dgp on 2005-09-12 08:54:29:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      corrected patch now attached
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [be350dc3f4] (rid 102038) by dgp on 2005-09-12 08:54:31:

    1. icomment:
      
      
      File Deleted - 148370: 
      
      
      
      File Added - 148760: 1284178.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [0f53f39870] (rid 94771) by dgp on 2005-10-14 00:52:02:

    1. 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
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  10. Ticket change [1c2713f94c] (rid 90554) by dkf on 2005-10-14 03:27:51:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixing this breaks format-17.1 and format-18.2
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  11. Ticket change [117b9c9051] (rid 95151) by dgp on 2005-10-14 03:40:35:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      my position is that the tests
      themselves are broken.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  12. Ticket change [99e9f6870e] (rid 110873) by dkf on 2005-10-14 04:46:33:

    1. closedate changed to: "2005-10-13T21:46:33"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      
      Fixed in 8.4 branch.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dkf"