Skip to content
Tcl Source Code History Of Ticket 224600
Login

History Of Ticket 224600

Artifacts Associated With Ticket 224600

  1. Ticket change [b8e5e81656] (rid 129040) by kennykb on 2000-12-05 19:57:28:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      David Hawkins observes in
      <URL:http://x72.deja.com/viewthread.xp?AN=700160928>
      that the 'scan' comand in Tcl 8.3 has a regression from 8.0 in the handling of
      octal and hex representations of negative numbers.  For example:
      
      8.0 -- 'scan' could recover the result of 'format' applied to a negative number.
      % info tclversion
      8.0
      % info patchlevel
      8.0.5
      % set test1 [format {%o %x} -1 -1]
      37777777777 ffffffff
      % scan $test1 {%o %x} a b
      2
      % list $a $b
      -1 -1
      
      8.3 -- 'scan' no longer recovers the number.
      % info tclversion
      8.3
      % info patchlevel
      8.3.2
      % set test1 [format {%o %x} -1 -1]
      37777777777 ffffffff
      % scan $test1 {%o %x} a b
      2
      % list $a $b
      2147483647 2147483647
      
      There appears no longer to be any way to use the 'scan' command to
      recover the original number that was passed to 'format'.
      
      The fix is simple -- use strtoul instead of strtol to parse %o and %x
      formats.
      
      Patch with test cases will be submitted shortly.
      
    4. foundin initialized to: "obsolete: 8.4a2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kennykb"
    9. subsystem initialized to: "81. Bundled Packages"
    10. title initialized to: "Regression in 'scan' of large octal/hex integers"
    11. type initialized to: "Bug"
  2. Ticket change [dab519b7ac] (rid 107841) by kennykb on 2000-12-06 03:01:28:

    1. icomment:
      Patch is at
      https://sourceforge.net/patch/?func=detailpatch&patch_id=102663&group_id=10894
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  3. Ticket change [e11e23bd00] (rid 87393) by hobbs on 2000-12-10 09:59:14:

    1. closedate changed to: "2000-12-10T02:59:14"
    2. closer changed to: "hobbs"
    3. icomment:
      Fixed with patch http://sourceforge.net/patch/?func=detailpatch&patch_id=102663&group_id=10894
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"
  4. Ticket change [77a4fb1cf9] (rid 89812) by dgp on 2001-04-05 08:12:17:

    1. closedate changed to: "2001-04-05T01:12:17"
    2. closer changed to: "dgp"
    3. subsystem changed to: "23. [scan]"