ref: 68e465760b49c0e3c8e70da82451fff1420fba5a
parent: d53a7b09b6eb7ac6adce58f8239181dcaee54e6c
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Sep 29 11:17:21 EDT 2015
ape: set MB_CUR_MAX to 4 in stdlib.h for 21-bit runes (thanks erik quanstro) > fix silly bug with ape/stdlib.h which caused ape/lib/regexp/regcomp.c > to miscompile regular expressions with runes > 0xffff.
--- a/sys/include/ape/stdlib.h
+++ b/sys/include/ape/stdlib.h
@@ -6,7 +6,7 @@
#define EXIT_FAILURE 1
#define EXIT_SUCCESS 0
-#define MB_CUR_MAX 3
+#define MB_CUR_MAX 4
#define RAND_MAX 32767
typedef struct { int quot, rem; } div_t;--
⑨