Skip to content
Tcl Source Code History Of Ticket 6585b21ca8
Login

History Of Ticket 6585b21ca8

Artifacts Associated With Ticket 6585b21ca8

  1. Ticket change [73755bb48f] (rid 132921) by anonymous on 2013-07-18 23:03:22:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      This regexp test fails, though it should succeed:
      
      % regexp {(\w).*?\1} {Programmer}
      0
      
      If you remove the '?', it does succeed, showing that the problem is restricted to non-greedy mode.
      
      This problem was initially reported to the Postgres project:
      http://www.postgresql.org/message-id/CAM2+6=U8CdfM-qL55XHt+7hVzDRBnZwrHiVZRX2shGZ4OMuMSQ@mail.gmail.com
      
      As per the discussion there, it seems that this is a bug in cfindloop(), and that the fix is that the /* no point in trying again */ code block is wrong and should be replaced by a simple "break;", allowing the intermediate loop to continue iterating with the next possible "begin" value.  I further suggested refactoring to merge that test into the subsequent statements that adjust estart/estop, but that's cosmetic, not essential to the fix.
      
    5. foundin initialized to: "8.5.8"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "26864b65f1c6ce8bda86f87ed9c554e19ac0390d"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "43. Regexp"
    15. title initialized to:
      Non-greedy match fails in combination with backreference
      
    16. type initialized to: "Bug"
  2. Ticket change [5835fa83ff] (rid 133059) by dgp on 2013-07-26 13:25:19:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2456500.05925792"
    3. closer changed to: "dgp"
    4. icomment: "Fixed for 8.5.15 and 8.6.1."
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"