summaryrefslogtreecommitdiffstats
path: root/generic/tclUtf.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2002-01-02 13:52:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2002-01-02 13:52:03 (GMT)
commit75c6074fa9ed66a5fe5ac9afbd633cf0207e0899 (patch)
treea705d6a0587c54ed5536496f94e042dd0c53b62c /generic/tclUtf.c
parenteb8476367a6bc605f4c88e534db5caefc769f216 (diff)
downloadtcl-75c6074fa9ed66a5fe5ac9afbd633cf0207e0899.zip
tcl-75c6074fa9ed66a5fe5ac9afbd633cf0207e0899.tar.gz
tcl-75c6074fa9ed66a5fe5ac9afbd633cf0207e0899.tar.bz2
Fixed fault with case-insensitive string matching (Bug#233257) and rewrote
some tests to test what they claimed to be testing.
Diffstat (limited to 'generic/tclUtf.c')
-rw-r--r--generic/tclUtf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/generic/tclUtf.c b/generic/tclUtf.c
index 17990db..5bdf557 100644
--- a/generic/tclUtf.c
+++ b/generic/tclUtf.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUtf.c,v 1.19 2001/10/16 05:31:19 dgp Exp $
+ * RCS: @(#) $Id: tclUtf.c,v 1.20 2002/01/02 13:52:04 dkf Exp $
*/
#include "tclInt.h"
@@ -1691,6 +1691,9 @@ Tcl_UniCharCaseMatch(string, pattern, nocase)
if (p == 0) {
return 1;
}
+ if (nocase) {
+ p = Tcl_UniCharToLower(p);
+ }
while (1) {
/*
* Optimization for matching - cruise through the string