From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id B2DBC384B13A; Wed, 26 Oct 2022 15:11:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2DBC384B13A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666797108; bh=98UEY1e3zTxYaDoEDqu4F22S5TasaOhDLuQ2AQV5//8=; h=From:To:Subject:Date:From; b=fnrgOLv2vQzbdLnveX2qComGlTM66J4IczV3RuSeud4DqPK3BNDS6XjP7xzr+JwDu NfC7/jBt7YPlfmNkzxIGC9BA90V5ATQaZIgVfxiblo4nSd0LATV8pOR72KYhl/8TO4 eF5IOGTXNHXasb3AkHTf/xfYwSzziF9tPTsNrlv8= 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: 1e49dc13a634c16fa8be142a7eb208c7c18cf4a8 X-Git-Newrev: 7c0608e350069c6d23a97742977e2b9e267ebf73 Message-Id: <20221026151148.B2DBC384B13A@sourceware.org> Date: Wed, 26 Oct 2022 15:11:48 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7c0608e350069c6d23a97742977e2b9e267ebf73 commit 7c0608e350069c6d23a97742977e2b9e267ebf73 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