From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 5740E3865C1F; Thu, 27 Oct 2022 13:50:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5740E3865C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878623; bh=yLsj27Bd+iMapYTn35aTNHafUvJchJXF6gnPSMareLI=; h=From:To:Subject:Date:From; b=DEFhY4MBnr6j1d1Hq05ou5Dc3+HeMVoce3DBeSw5ocpR/NRxPavkHGpHeTsbtN5Mo 9roDlpS+8aO75dlKyIsC74NDO7I4p2RkZr/BgC0dGMozNOu7WpboLPijS5zTdewviM JjOHE2BbBTuHL2PWh4lvnnyxfN3XjciUnxWUwgv8= 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: 3a69d7f241ab9f738479e039bd6eecf433868375 X-Git-Newrev: 1604aadbdf88b72dd69183f69fa022f3d90ac20b Message-Id: <20221027135023.5740E3865C1F@sourceware.org> Date: Thu, 27 Oct 2022 13:50:23 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1604aadbdf88b72dd69183f69fa022f3d90ac20b commit 1604aadbdf88b72dd69183f69fa022f3d90ac20b 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