Artifacts Associated With Ticket 3588366fffffffff
Ticket change [428a8485e3] (rid 116401) by egavilan on 2012-11-18 20:47:52:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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
- foundin initialized to: "current: 8.6.0"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "egavilan"
- subsystem initialized to: "None"
- title initialized to: "string range bug"
- type initialized to: "Bug"
Ticket change [f0d6493995] (rid 109262) by nijtmans on 2012-11-19 04:08:03:
- icomment:
Has to do with "string range" bytecode compilation?
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [468bab3a53] (rid 99535) by nijtmans on 2012-11-19 04:08:04:
- assignee changed to: "dkf"
Ticket change [336406e1f0] (rid 106590) by dgp on 2012-11-19 04:32:08:
- priority changed to: "9 Immediate"
Ticket change [026e73b260] (rid 119648) by egavilan on 2012-11-19 04:47:20:
- 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; } /* - login: "egavilan"
- mimetype: "text/plain"
- username: "egavilan"
- icomment:
Ticket change [c3318af449] (rid 111619) by dkf on 2012-11-20 05:13:58:
- closedate changed to: "2012-11-19T22:13:58"
- closer changed to: "dkf"
- 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.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- subsystem changed to: "47. Bytecode Compiler"
- username: "dkf"