Skip to content
Tcl Source Code History Of Ticket 2065115
Login

History Of Ticket 2065115

Artifacts Associated With Ticket 2065115

  1. Ticket change [e80283deda] (rid 104576) by duquette on 2008-08-21 15:56:50:

    1. assignee initialized to: "pvgoran"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "obsolete: 8.5.4"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "duquette"
    10. subsystem initialized to: "43. Regexp"
    11. title initialized to: "RE syntax "***=" fails "
    12. type initialized to: "Bug"
  2. Ticket change [6de98198af] (rid 128787) by ferrieux on 2008-08-22 03:18:00:

    1. 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).
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "ferrieux"
  3. Ticket change [5589087a56] (rid 94149) by hobbs on 2008-08-22 06:21:05:

    1. closedate changed to: "2008-08-21T23:21:05"
    2. closer changed to: "hobbs"
    3. 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.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"
  4. Ticket change [543af3481f] (rid 93908) by andreas_kupries on 2008-08-22 06:30:14:

    1. 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.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  5. Ticket change [8c51d1f45a] (rid 127724) by dgp on 2008-08-22 20:17:18:

    1. assignee changed to: "hobbs"
    2. 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
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. status changed to: "Open"
    6. username: "dgp"
  6. Ticket change [179256f017] (rid 122521) by dgp on 2008-08-22 23:59:59:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [6f080c260b] (rid 100240) by dgp on 2008-08-23 00:21:30:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [c88a20434c] (rid 122117) by dgp on 2008-08-23 01:04:19:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2008-08-22T18:04:19"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      fixed
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. status changed to: "Closed"
    8. username: "dgp"