ref: cde69a78225ee3b8c5e46ddb98ce4bd599d4f355
parent: 695f0e0694a438ae314be65757e9736c33892249
author: cinap_lenrek <[email protected]>
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;