From: Szabolcs Nagy Date: Fri, 18 Mar 2022 10:14:58 +0000 (+0000) Subject: static: glibc-bug: NL_CURRENT_INDIRECT is broken so disable it X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3d2d246c533630dbe24aa0d80726b541160e3cb;p=thirdparty%2Fglibc.git static: glibc-bug: NL_CURRENT_INDIRECT is broken so disable it nl_langinfo_l ignores its locale argument with NL_CURRENT_INDIRECT which is wrong when that argument does not match the current thread's locale. upstream glibc is not tested with static linking so this is not found. --- diff --git a/locale/localeinfo.h b/locale/localeinfo.h index fd43033a191..addb9e0ca63 100644 --- a/locale/localeinfo.h +++ b/locale/localeinfo.h @@ -247,8 +247,8 @@ __libc_tsd_define (extern, locale_t, LOCALE) But with thread-local locale settings, it becomes quite ungainly unless we can use __thread variables. So only in that case do we attempt this. */ #ifndef SHARED -# include -# define NL_CURRENT_INDIRECT 1 +//# include +//# define NL_CURRENT_INDIRECT 1 #endif #ifdef NL_CURRENT_INDIRECT