# HG changeset patch
# User Aris Koning <aris.koning@monetdbsolutions.com>
# Date 1560877256 -7200
# Node ID 25cd8af6fa82297097073e2e2ef2ad653064d413
# Parent  3510e17287e676d40cf9614f083a1f38ae735634
TEMPORARILY relax error condition
bad utf8 means nomatch

diff -r 3510e17287e6 -r 25cd8af6fa82 regexp/regexp.c
--- a/regexp/regexp.c	Mon Jun 17 17:30:38 2019 +0200
+++ b/regexp/regexp.c	Tue Jun 18 19:00:56 2019 +0200
@@ -216,7 +216,7 @@
 			bn->tnonil = false;
 		} else {
 			pos = pcre_exec(re, sd, val, (int) strlen(val), 0, 0, NULL, 0);
-			if (pos < 0 && pos != PCRE_ERROR_NOMATCH) {
+			if (pos < 0 && pos != PCRE_ERROR_NOMATCH && pos != PCRE_ERROR_BADUTF8) {
 				/* error during processing */
 				BBPunfix(b->batCacheid);
 				BBPreclaim(bn);