diff --git a/libc-top-half/musl/src/internal/locale_impl.h b/libc-top-half/musl/src/internal/locale_impl.h index 4649a43e0..88f5dcf8f 100644 --- a/libc-top-half/musl/src/internal/locale_impl.h +++ b/libc-top-half/musl/src/internal/locale_impl.h @@ -64,7 +64,7 @@ hidden char *__gettextdomain(void); &libc.current_locale; \ })) -#define CURRENT_UTF8 (!!libc.global_locale.cat[LC_CTYPE]) +#define CURRENT_UTF8 (!!CURRENT_LOCALE->cat[LC_CTYPE]) #endif #undef MB_CUR_MAX