projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aarch64: add HWCAP_ flags from linux v4.17
[musl]
/
src
/
internal
/
locale_impl.h
diff --git
a/src/internal/locale_impl.h
b/src/internal/locale_impl.h
index
85db793
..
d5a3cc9
100644
(file)
--- a/
src/internal/locale_impl.h
+++ b/
src/internal/locale_impl.h
@@
-6,7
+6,7
@@
#include "libc.h"
#include "pthread_impl.h"
#include "libc.h"
#include "pthread_impl.h"
-#define LOCALE_NAME_MAX
15
+#define LOCALE_NAME_MAX
23
struct __locale_map {
const void *map;
struct __locale_map {
const void *map;
@@
-34,4
+34,7
@@
const char *__lctrans_cur(const char *);
#define CURRENT_UTF8 (!!__pthread_self()->locale->cat[LC_CTYPE])
#define CURRENT_UTF8 (!!__pthread_self()->locale->cat[LC_CTYPE])
+#undef MB_CUR_MAX
+#define MB_CUR_MAX (CURRENT_UTF8 ? 4 : 1)
+
#endif
#endif