From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
To: musl@lists.openwall.com
Subject: [musl] Default binding directory for gettext
Date: Thu, 1 Dec 2022 23:31:32 -0600 [thread overview]
Message-ID: <B337ECC3-EB79-437C-8C28-10217E3B61B4@Wilcox-Tech.com> (raw)
Hi,
While updating the package ‘cracklib’ for Adélie 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.html,
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’t 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’t 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.
next reply other threads:[~2022-12-02 5:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 5:31 A. Wilcox [this message]
2022-12-02 15:16 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B337ECC3-EB79-437C-8C28-10217E3B61B4@Wilcox-Tech.com \
--to=awilcox@wilcox-tech.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).