summaryrefslogtreecommitdiff
path: root/pcrecpp.cc
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-08-29 11:24:23 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-08-29 11:24:23 +0000
commit4564a4adc51b983ea48bd3820e42d7388f38b273 (patch)
tree01ec0c1dca6d7f0ef05fed4f7d6a4e7bed1cd0bd /pcrecpp.cc
parentdaa458cc0a38fbb4b8ef52344531fd82ebf5dc0d (diff)
downloadpcre-4564a4adc51b983ea48bd3820e42d7388f38b273.tar.gz
Apply user patch to allow PCRE_NO_UTF8_CHECK in pcrecpp.cc.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1025 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.cc')
-rw-r--r--pcrecpp.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/pcrecpp.cc b/pcrecpp.cc
index 1e91098..b71eb0a 100644
--- a/pcrecpp.cc
+++ b/pcrecpp.cc
@@ -521,7 +521,10 @@ int RE::TryMatch(const StringPiece& text,
extra.match_limit_recursion = options_.match_limit_recursion();
}
- int options = 0;
+ // int options = 0;
+ // Changed by PH as a result of bugzilla #1288
+ int options = (options_.all_options() & PCRE_NO_UTF8_CHECK);
+
if (anchor != UNANCHORED)
options |= PCRE_ANCHORED;
if (!empty_ok)