diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-29 15:17:21 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-09-29 15:17:21 +0200 |
commit | cde69a78225ee3b8c5e46ddb98ce4bd599d4f355 (patch) | |
tree | 9a6d331ac7db8c66aa459c776a8c3385c8d70066 | |
parent | 695f0e0694a438ae314be65757e9736c33892249 (diff) | |
download | plan9front-cde69a78225ee3b8c5e46ddb98ce4bd599d4f355.tar.xz |
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.
-rw-r--r-- | sys/include/ape/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/ape/stdlib.h b/sys/include/ape/stdlib.h index 8288f86b9..03fbb88c4 100644 --- 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; |