From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2209 invoked from network); 2 Dec 2022 05:31:51 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 2 Dec 2022 05:31:51 -0000 Received: (qmail 5346 invoked by uid 550); 2 Dec 2022 05:31:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 5291 invoked from network); 2 Dec 2022 05:31:47 -0000 From: "A. Wilcox" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Message-Id: Date: Thu, 1 Dec 2022 23:31:32 -0600 To: musl@lists.openwall.com X-Mailer: Apple Mail (2.3696.120.41.1.1) Subject: [musl] Default binding directory for gettext Hi, While updating the package =E2=80=98cracklib=E2=80=99 for Ad=C3=A9lie = Linux, I found it does not give localised messages, because it does not call bindtextdomain(3), only textdomain(3). This does work on glibc and GNU gettext as a library, which use /usr/share/locale as a default binding. Is it intentional that there is no default binding for gettext? I believe the GNU implementation is meant to be canonical for behaviour of gettext, and this seems to not match. From = https://www.gnu.org/software/gettext/manual/html_node/Locating-Catalogs.ht= ml, emphasis mine: > The directory name given in bindtextdomains second argument **(or the default directory)**, followed by the name of the locale, the locale category, and the domain name are concatenated Since this technically isn=E2=80=99t portable when the software is = installed in a different $PREFIX, I did open https://github.com/cracklib/cracklib/pull/50, so this should be fixed in a future release of the package. Still, I wasn=E2=80=99t sure if this = musl behaviour was desired or not. My personal feeling is that both are wrong; bindtextdomain is needed in the case of non-standard PREFIX, but musl should have a default fallback path for packages that elide the call. Best, -A. -- A. Wilcox (they/them) SW Engineering: C/C++, DevOps, POSIX Wilcox Technologies Inc.