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.
This commit is contained in:
Szabolcs Nagy 2022-03-18 10:14:58 +00:00
parent 94f15a4231
commit c3d2d246c5

View File

@ -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 <tls.h>
# define NL_CURRENT_INDIRECT 1
//# include <tls.h>
//# define NL_CURRENT_INDIRECT 1
#endif
#ifdef NL_CURRENT_INDIRECT