Define MB_LEN_MAX to 16.

* we follow glibc's example and allow 16 bytes as maximum multibyte
  character length (ICU's data currently shows an actual maximum
  of 8 bytes)
This commit is contained in:
Oliver Tappe
2011-11-22 17:40:45 +01:00
parent e0eb1d38c4
commit 0f21cf0ca0
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
/* Maximum length of a multibyte character. */ /* Maximum length of a multibyte character. */
#ifndef MB_LEN_MAX #ifndef MB_LEN_MAX
#define MB_LEN_MAX 1 #define MB_LEN_MAX 16
#endif #endif
/* Minimum and maximum values a `signed char' can hold. */ /* Minimum and maximum values a `signed char' can hold. */
+2
View File
@@ -26,6 +26,8 @@
#define LLONG_MAX LONGLONG_MAX #define LLONG_MAX LONGLONG_MAX
#define LLONG_MIN LONGLONG_MIN #define LLONG_MIN LONGLONG_MIN
#define MB_LEN_MAX 16
#define OFF_MAX LLONG_MAX #define OFF_MAX LLONG_MAX
#define OFF_MIN LLONG_MIN #define OFF_MIN LLONG_MIN