#include "libc.h"
#include "pthread_impl.h"
-#define LOCALE_NAME_MAX 15
+#define LOCALE_NAME_MAX 23
struct __locale_map {
const void *map;
#define CURRENT_UTF8 (!!__pthread_self()->locale->cat[LC_CTYPE])
+#undef MB_CUR_MAX
+#define MB_CUR_MAX (CURRENT_UTF8 ? 4 : 1)
+
#endif