projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add mips64 port
[musl]
/
src
/
internal
/
locale_impl.h
diff --git
a/src/internal/locale_impl.h
b/src/internal/locale_impl.h
index
85db793
..
f5e4d9b
100644
(file)
--- a/
src/internal/locale_impl.h
+++ b/
src/internal/locale_impl.h
@@
-34,4
+34,7
@@
const char *__lctrans_cur(const char *);
#define CURRENT_UTF8 (!!__pthread_self()->locale->cat[LC_CTYPE])
+#undef MB_CUR_MAX
+#define MB_CUR_MAX (CURRENT_UTF8 ? 4 : 1)
+
#endif