diff --git a/src/private/pcre_src/config.h b/src/private/pcre_src/config.h index aa1a530c4..55c8a27c2 100644 --- a/src/private/pcre_src/config.h +++ b/src/private/pcre_src/config.h @@ -324,13 +324,13 @@ sure both macros are undefined; an emulation function will then be used. */ /* #undef SUPPORT_PCREGREP_JIT */ /* Define to any value to enable support for Unicode properties. */ -/* #undef SUPPORT_UCP */ +#define SUPPORT_UCP /* Define to any value to enable support for the UTF-8/16/32 Unicode encoding. This will work even in an EBCDIC environment, but it is incompatible with the EBCDIC macro. That is, PCRE can support *either* EBCDIC code *or* ASCII/UTF-8/16/32, but not both at once. */ -/* #undef SUPPORT_UTF */ +#define SUPPORT_UTF /* Define to any value for valgrind support to find invalid memory reads. */ /* #undef SUPPORT_VALGRIND */ diff --git a/test/misc.nim b/test/misc.nim new file mode 100644 index 000000000..529ea342e --- /dev/null +++ b/test/misc.nim @@ -0,0 +1,5 @@ +import unittest, nre + +suite "Misc tests": + test "unicode": + check("".find(re("", "8")).match == "") diff --git a/test/testall.nim b/test/testall.nim index 7b11fbb91..f7fe8892a 100644 --- a/test/testall.nim +++ b/test/testall.nim @@ -6,3 +6,4 @@ import split import match import replace import escape +import misc