Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Case-insensitive [string match] problem

Closed / Fixed233257ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2001-02-20 15:56:28
The following script prints out a result that is clearly wrong (sorry for not making it any clearer, but web-forms tend to mangle non-ASCII characters.)

  set s1 [binary format I 717316707]
  set s2 [binary format I 2028036707]
  puts "\[string match -nocase $s1 $s2\] = [string match -nocase $s1 $s2]"

This is caused because the character matching after a * character is only partially UTF-8 aware (i.e. it assumes that only ASCII characters can immediately follow a * charater in a pattern.)
dkfplain2001-03-15 23:21:57
Logged In: YES 
user_id=79902

http://www.cs.man.ac.uk/~fellowsd/tcl/patches/stringmatch.patch
dkf Ticket [233257ffff]: 1 change [History diff]2001-09-20 16:38:52
dkf Closed ticket [233257ffff]. [History diff]2002-01-02 20:52:48
Log in (anonymous is fine) to add a comment.