diff options
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/limits.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/include/limits.h b/winsup/cygwin/include/limits.h index 7f43cfb5c..e6e089da9 100644 --- a/winsup/cygwin/include/limits.h +++ b/winsup/cygwin/include/limits.h @@ -28,7 +28,9 @@ details. */ /* Maximum length of a multibyte character. */ #ifndef MB_LEN_MAX -#define MB_LEN_MAX 1 +/* TODO: This is newlib's max value. We should probably rather define our + own _mbtowc_r and _wctomb_r functions which are only codepage dependent. */ +#define MB_LEN_MAX 8 #endif /* Minimum and maximum values a `signed char' can hold. */ |