From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id CB5E83852C4D; Wed, 23 Nov 2022 14:40:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB5E83852C4D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669214416; bh=WhHWUroZketqqmkmnmFi3+NeAOKx3CHKWAS5Duzsg9s=; h=From:To:Subject:Date:From; b=IH9C7kXdP85cFZts18Tvp9mQYGgobNW70+J7CWOu4px0HUN3Xt2VSZzZD/Wdlp43o Nhik6ShsK67BTBoQj72LVf2B2IPPkJo8mlDFNwnQF4qGvf4RLUaVmRcX8+bBUwVQ3+ 2CCC9vB0WI5tExxHBlpFndScPN6SKlJABVmV3z4E= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] static: glibc-bug: NL_CURRENT_INDIRECT is broken so disable it X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: fe37bbda29628e78737009439c16479663414f45 X-Git-Newrev: ad946943cede829e0af07b5e2dd39edbedceebba Message-Id: <20221123144016.CB5E83852C4D@sourceware.org> Date: Wed, 23 Nov 2022 14:40:16 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ad946943cede829e0af07b5e2dd39edbedceebba commit ad946943cede829e0af07b5e2dd39edbedceebba Author: Szabolcs Nagy Date: Fri Mar 18 10:14:58 2022 +0000 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: --- locale/localeinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/localeinfo.h b/locale/localeinfo.h index fd43033a19..addb9e0ca6 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