Artifacts Associated With Ticket 0d902eadd6
Ticket change [8b9a866ec2] (rid 157747) by dkf on 2017-11-04 00:41:45:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/html"
- comment initialized to:
The following code: <pre> set s hello; regexp ll $s m; string first $m $s </pre> has a result of <tt>-1</tt>, which is <i>very</i> surprising. The problem is that <tt>regexp</tt> uses <tt>Tcl_GetRange()</tt> on objects with a unicode representation (which <tt>regexp</tt> needs for its own purposes) and that decides that the best thing is to create a <i>pure</i> unicode object, even though the string is within the ASCII range. Normally that wouldn't matter, but <tt>string first</tt> (properly <tt>TclStringFind()</tt>) assumes that that's an impossible situation and jumps merrily to saying that things can't match when that's totally untrue. <p> This was discovered by Pat Thoyts, and narrowed down to changes in the <tt>dgp-string-find<tt> branch.
- foundin initialized to: "8.7a1"
- is_private initialized to: "0"
- login: "dkf"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "11. Conversions from String"
- title initialized to:
[string first] cannot assume that Unicode = non-ASCII
- type initialized to: "Bug"
Ticket change [c1bb5bf0b5] (rid 157749) by dkf on 2017-11-04 00:44:35:
- closedate changed to: "2458061.5309717"
- closer changed to: "dkf"
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [75175b6970] (rid 160615) by dgp on 2018-02-01 14:30:32:
- closedate changed to: "2458151.10454833"
- closer changed to: "dgp"
- icomment:
The same broken assumption is used in TclStringLast(). % set s hello; regexp ll $s m; string last $m $s -1
- login: "dgp"
- mimetype: "text/plain"
Ticket change [ca4b232973] (rid 160616) by dgp on 2018-02-01 14:38:59:
- assignee changed to: "dgp"
- closer changed to: "nobody"
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Remind"
- status changed to: "Open"
Ticket change [21040acd6e] (rid 160696) by dgp on 2018-02-06 19:44:35:
- closedate changed to: "2458156.32263522"
- closer changed to: "dgp"
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"