aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-07-12 00:55:03 +0000
committernyamatongwe <devnull@localhost>2010-07-12 00:55:03 +0000
commit52503a6ed8ed86bdb59e5a352684ab2ee125110e (patch)
treebbe3220e2c173615ad2d3ef3d9b485945eefe3a7
parente4c6c1b766b56bb109e5af523871b87016967f71 (diff)
downloadscintilla-mirror-52503a6ed8ed86bdb59e5a352684ab2ee125110e.tar.gz
Fix regular expression searches for ranges above 0x80 like [A-€].
-rw-r--r--src/RESearch.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/RESearch.cxx b/src/RESearch.cxx
index a5dbf3678..3baa37c91 100644
--- a/src/RESearch.cxx
+++ b/src/RESearch.cxx
@@ -522,7 +522,7 @@ const char *RESearch::Compile(const char *pattern, int length, bool caseSensitiv
if (*(p+1) != ']') {
c1 = prevChar + 1;
i++;
- c2 = *++p;
+ c2 = static_cast<unsigned char>(*++p);
if (c2 == '\\') {
if (!*(p+1)) // End of RE
return badpat("Missing ]");
@@ -577,7 +577,7 @@ const char *RESearch::Compile(const char *pattern, int length, bool caseSensitiv
prevChar = -1;
}
} else {
- prevChar = *p;
+ prevChar = static_cast<unsigned char>(*p);
ChSetWithCase(*p, caseSensitive);
}
i++;