From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 5EC973850430; Wed, 12 Oct 2022 14:16:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EC973850430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1665584165; bh=0MfqVkN9ghFsl+nm3GGEdZ7OWa55FYBdbT1kLvPPuJ4=; h=From:To:Subject:Date:From; b=KglSQeJiOjNaUjlyG+jwlTxQNgJRAqIRXeiXf4x1bwEOrBfEQGxv4R4W9p2Xhj/2v TwmFNQFT0AXV6DiValWhuiXslOw/j7aGKG0tkcRQkUfgs60qRszi55RWDywOPbKMB5 Y5H+zpBwJ/wRYdKn14yRyKWiOBrodRNjdz6JWmfc= 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: 94f15a42317a78481fd7eae415503e63671ae2ba X-Git-Newrev: c3d2d246c533630dbe24aa0d80726b541160e3cb Message-Id: <20221012141605.5EC973850430@sourceware.org> Date: Wed, 12 Oct 2022 14:16:05 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c3d2d246c533630dbe24aa0d80726b541160e3cb commit c3d2d246c533630dbe24aa0d80726b541160e3cb 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