schema compile UPDATE unicode support for character classes
Refs #1880
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index ba7e4cb..0e08923 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -1164,11 +1164,6 @@
}
}
- /* at least inform about other XML Schema vs. Perl character block differences */
- if (strstr(perl_regex, "\\d") || strstr(perl_regex, "\\w")) {
- LOGVRB("Character blocks \"\\d\" and \"\\w\" accept only ASCII characters.");
- }
-
return LY_SUCCESS;
}
@@ -1188,7 +1183,7 @@
/* allocate space for the transformed pattern */
size = strlen(pattern) + 1;
- compile_opts = PCRE2_UTF | PCRE2_ANCHORED | PCRE2_DOLLAR_ENDONLY | PCRE2_NO_AUTO_CAPTURE;
+ compile_opts = PCRE2_UTF | PCRE2_UCP | PCRE2_ANCHORED | PCRE2_DOLLAR_ENDONLY | PCRE2_NO_AUTO_CAPTURE;
#ifdef PCRE2_ENDANCHORED
compile_opts |= PCRE2_ENDANCHORED;
#else