From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by sourceware.org (Postfix) with ESMTPS id 34BF8384F6E0 for ; Fri, 18 Nov 2022 05:06:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 34BF8384F6E0 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmx.at Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.at DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1668747990; bh=/6vr27qn5hKOxM7d8K1NAhPlRZx9OvxM8vZGvlsTEqE=; h=X-UI-Sender-Class:Date:From:To:Subject; b=jx+TF1kqBwD4yCxfB3iKLMbVfd8NJ7Fbbg1IuGil2KQhoqma00HBL7GO2TOpGbF/r pfeG240x9kd11LT90Td6Ly1m/Q1GKpl4wfphms53klzUGsYUxzGbn0jT2s1tvgz4v3 ACeuPDKTC4Xl0WWmURWEsjfghetAeYG5N0P6jcduB12+4rMwQGr8/46YW9+sWzO9GM Tg4MwKXolVjyvUfpItLvODo5k+5L11gf08FueTkLw/1qMfolCX+ZcIOEW6DYrnrDR/ Xzk1GE7VsO5Jrch49KS1OawBu4+EA07rEmSaKsrlkykzp1FU7Vt/L7VqAvA8H14+qc jgbfO+4Sv/bAw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from legacy ([80.109.83.31]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mt79F-1pFdOR0V5N-00tVyB for ; Fri, 18 Nov 2022 06:06:30 +0100 Date: Fri, 18 Nov 2022 06:06:28 +0100 From: Stefan Tauner To: newlib@sourceware.org Subject: _PathLocale and __collate_load_tables() X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-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MGF4ltfs0RP8OPrCiIKMr3pWTgZ+DeGblZBVbXhvgJQul8VC/nc4y82jPgvDoJzuMwPY6o 2rZNforKJMCfjnZPjnCSwcdzsCe6r5TSwmsFdh4u0jL9RjHPsp85YC6zOC0HlA0ojx3wnX3wN Ynylwxy/exGOHSVWd8d49jIgrkvM3n4cg9Uy7ybDMQG0sniwsN2nKNJUmlsCy2PaRnTiaBkbq ix9b6w== X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, there is a char *_PathLocale =3D NULL; in ./newlib/libc/locale/locale.c that is only read in __collate_load_tables() in ./newlib/libc/posix/collate.c I have looked at the git history and even googled but I couldn't figure out at all what the variable is supposed to be used for. Half of __collate_load_tables() would be unreachable if _PathLocale is never non-null. And then I looked at where __collate_load_tables() is used... and it seems to be not used within the library itself at all, and from the __ prefix I'd assume it's not really meant to be used externally (although it has a prototype in collate.h). Is this all just dead code or what am I missing? :) --=20 Kind regards/Mit freundlichen Gr=C3=BC=C3=9Fen, Stefan Tauner