Artifacts Associated With Ticket 2065115fffffffffffffffffffffffffffffffff
Ticket change [e80283deda] (rid 104576) by duquette on 2008-08-21 15:56:50:
- assignee initialized to: "pvgoran"
- cmimetype initialized to: "text/plain"
- comment initialized to:
When "***=" appears at the beginning of an RE, the remainder of the string is supposed to be treated as a string literal to be matched literally. This worked in 8.4.14; it isn't working in 8.5.3, as shown by this example: set string "aeiou" set re "***=o" if {[regexp -- $re $string]} { puts "Match!" } else { puts "Fail!" } The script ought to output "Match!"; it outputs "Fail!". I'm running Tcl 8.5.3 on RedHat Enterprise Linux 4. - foundin initialized to: "obsolete: 8.5.4"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "duquette"
- subsystem initialized to: "43. Regexp"
- title initialized to: "RE syntax "***=" fails "
- type initialized to: "Bug"
Ticket change [6de98198af] (rid 128787) by ferrieux on 2008-08-22 03:18:00:
- icomment:
Logged In: YES user_id=496139 Originator: NO Fails in 8.5.0 as well. And also in HEAD (8.6). Looks like ***=o is matched as ^o$ (anchored on both sides).
- login: "ferrieux"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "ferrieux"
- icomment:
Ticket change [5589087a56] (rid 94149) by hobbs on 2008-08-22 06:21:05:
- closedate changed to: "2008-08-21T23:21:05"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Originator: NO Fixed for 8.5.5 and 8.6a3. The translation to faster glob incorrectly made it an exact match. Amazingly, the few previous tests for this syntax passed because they were exact matches.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [543af3481f] (rid 93908) by andreas_kupries on 2008-08-22 06:30:14:
- icomment:
Logged In: YES user_id=75003 Originator: NO Note: This type of re -> glob conversion originated in Expect. Checking there we see the same type of 'exact' conversion. However in Expect this doesn't matter, as it searches the pattern in the whole buffer anyway, i.e. there are implicit *'s around it, making it unanchored. As such I believe Expect can be left unchanged.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [8c51d1f45a] (rid 127724) by dgp on 2008-08-22 20:17:18:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=80530 Originator: NO There are failing and duplicate tests now: ==== regexp-1.8 regexp ***= metasyntax FAILED ==== Contents of test case: regexp -- "***=o" "aeiou" ---- Result was: 0 ---- Result should have been (exact matching): 1 ==== regexp-1.8 FAILED ==== regexp-1.9 regexp ***= metasyntax FAILED ==== Contents of test case: set string "aeiou" regexp -- "***=o" $string ---- Result was: 0 ---- Result should have been (exact matching): 1 ==== regexp-1.9 FAILED regexpComp.test ==== regexp-1.8 regexp ***= metasyntax FAILED ==== Contents of test case: evalInProc { regexp -- "***=o" "aeiou" } ---- Result was: 0 ---- Result should have been (exact matching): 1 ==== regexp-1.8 FAILED ==== regexp-1.9 regexp ***= metasyntax FAILED ==== Contents of test case: evalInProc { set string "aeiou" regexp -- "***=o" $string } ---- Result was: 0 ---- Result should have been (exact matching): 1 ==== regexp-1.9 FAILED - login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
- username: "dgp"
Ticket change [179256f017] (rid 122521) by dgp on 2008-08-22 23:59:59:
- icomment:
Logged In: YES user_id=80530 Originator: NO trouble is that *exactPtr isn't set before the early exit. Appears there are other problems too.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [6f080c260b] (rid 100240) by dgp on 2008-08-23 00:21:30:
- icomment:
Logged In: YES user_id=80530 Originator: NO Committed fix so that the tests all pass. Now I'm worried that the possibility of string growth during RE -> glob translation isn't fully accounted for and buffer overflows are possible.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c88a20434c] (rid 122117) by dgp on 2008-08-23 01:04:19:
- assignee changed to: "dgp"
- closedate changed to: "2008-08-22T18:04:19"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO fixed
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "dgp"