Overview
| Artifact ID: | 8e7feb7ea0bffe7378118704b8749f094c93f985 |
|---|---|
| Ticket: | 703709ffffffffffffffffffffffffffffffffff
'TCL_REG_CANMATCH' flag returns incorrect matches |
| User & Date: | vincentdarley on 2003-03-14 16:23:11 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
The attached patch to tclTest.c and reg.test shows how Tcl_RegExpExecObj returns incorrect matches for many, many cases using the 'TCL_CAN_MATCH' flag. This flag is supposed to make regexp return (if it can't find a complete match) the first possible position at which a match could occur. However, it returns positions at which it is quite obvious no match could ever occur! For example: set pat {.x} set line "asd asd" # can match the last char, if followed by x set res [testregexp -xflags -- c $pat $line resvar] lappend res $resvar Should return '0 6' to say there is no match (0) but a match could possible occur at position 6 (with '.' matching the final 'd', if an 'x' was to be appended to the string). Unfortunately it returns '0 0' which is quite wrong. - foundin changed to: "obsolete: 8.4.2"
- priority changed to: "6"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "43. Regexp"
- title changed to: "'TCL_CAN_MATCH' flag returns incorrect matches"
- type changed to: "Bug"