]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
static: glibc-bug: NL_CURRENT_INDIRECT is broken so disable it
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 18 Mar 2022 10:14:58 +0000 (10:14 +0000)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 12 Oct 2022 13:22:03 +0000 (14:22 +0100)
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.

locale/localeinfo.h

index fd43033a1915a0356ce6b776a4c8fead4866086c..addb9e0ca63f7b340d587b0b6e0eb658bc6f25dc 100644 (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