Skip to content
Tcl Source Code History Of Ticket 3588366fffffffff
Login

History Of Ticket 3588366fffffffff

Artifacts Associated With Ticket 3588366fffffffff

  1. Ticket change [428a8485e3] (rid 116401) by egavilan on 2012-11-18 20:47:52:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      In trunk:
      
      % string range .sbar 0 end-5
      .
      %
      
      It should have been the empty string according to docs.
      
      The bug was introduced in fossil check-in 8e20d1a93ffebebf7e904c556944868a6ea692b7
      
    4. foundin initialized to: "current: 8.6.0"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "egavilan"
    10. subsystem initialized to: "None"
    11. title initialized to: "string range bug"
    12. type initialized to: "Bug"
  2. Ticket change [f0d6493995] (rid 109262) by nijtmans on 2012-11-19 04:08:03:

    1. icomment:
      Has to do with "string range" bytecode compilation?
      
      
    2. login: "nijtmans"
    3. mimetype: "text/plain"
    4. username: "nijtmans"
  3. Ticket change [468bab3a53] (rid 99535) by nijtmans on 2012-11-19 04:08:04:

    1. assignee changed to: "dkf"
  4. Ticket change [336406e1f0] (rid 106590) by dgp on 2012-11-19 04:32:08:

    1. priority changed to: "9 Immediate"
  5. Ticket change [026e73b260] (rid 119648) by egavilan on 2012-11-19 04:47:20:

    1. icomment:
      Yes. The compiled path has a bug. I've tracked it down to generic/tclExecute.c, line 4865.
      
      The following patch fixes the issue:
      
      Index: generic/tclExecute.c
      ==================================================================
      --- generic/tclExecute.c
      +++ generic/tclExecute.c
      @@ -4960,13 +4960,10 @@
              } else if (fromIdx >= length) {
                  fromIdx = length;
              }
              if (toIdx < -1) {
                  toIdx += 1 + length;
      -           if (toIdx < 0) {
      -               toIdx = 0;
      -           }
              } else if (toIdx >= length) {
                  toIdx = length - 1;
              }
      
              /*
      
      
      
      
    2. login: "egavilan"
    3. mimetype: "text/plain"
    4. username: "egavilan"
  6. Ticket change [c3318af449] (rid 111619) by dkf on 2012-11-20 05:13:58:

    1. closedate changed to: "2012-11-19T22:13:58"
    2. closer changed to: "dkf"
    3. icomment:
      
      
      allow_comments - 1
      
      Problem was due to me getting the end-relative arithmetic wrong (it's almost but not quite simple, and it's almost but not quite the same in [lrange]). Added tests and fixed things (your patch is the right thing).
      
      Thanks.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. subsystem changed to: "47. Bytecode Compiler"
    9. username: "dkf"