X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Finternal%2Flocale_impl.h;h=f5e4d9b4ae00313c0057414baaa270bbc4554a20;hb=83933573aff71a5d178ab71912f177d2d844e63e;hp=85db793312e81b120a73ce63548c3007b02475fb;hpb=32f3c4f70633488550c29a2444f819aafdf345ff;p=musl diff --git a/src/internal/locale_impl.h b/src/internal/locale_impl.h index 85db7933..f5e4d9b4 100644 --- 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