Skip to content
Tcl Source Code History Of Ticket 0d902eadd6
Login

History Of Ticket 0d902eadd6

Artifacts Associated With Ticket 0d902eadd6

  1. Ticket change [8b9a866ec2] (rid 157747) by dkf on 2017-11-04 00:41:45:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/html"
    4. 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.
      
    5. foundin initialized to: "8.7a1"
    6. is_private initialized to: "0"
    7. login: "dkf"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "dkf"
    13. subsystem initialized to: "11. Conversions from String"
    14. title initialized to:
      [string first] cannot assume that Unicode = non-ASCII
      
    15. type initialized to: "Bug"
  2. Ticket change [c1bb5bf0b5] (rid 157749) by dkf on 2017-11-04 00:44:35:

    1. closedate changed to: "2458061.5309717"
    2. closer changed to: "dkf"
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"
  3. Ticket change [75175b6970] (rid 160615) by dgp on 2018-02-01 14:30:32:

    1. closedate changed to: "2458151.10454833"
    2. closer changed to: "dgp"
    3. icomment:
      
      The same broken assumption is used in TclStringLast().
      
      % set s hello; regexp ll $s m; string last $m $s
      -1
      
    4. login: "dgp"
    5. mimetype: "text/plain"
  4. Ticket change [ca4b232973] (rid 160616) by dgp on 2018-02-01 14:38:59:

    1. assignee changed to: "dgp"
    2. closer changed to: "nobody"
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Remind"
    6. status changed to: "Open"
  5. Ticket change [21040acd6e] (rid 160696) by dgp on 2018-02-06 19:44:35:

    1. closedate changed to: "2458156.32263522"
    2. closer changed to: "dgp"
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"