Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependence on _nl_msg_cat_cntr #325

Closed
doughdemon opened this issue Sep 10, 2024 · 3 comments
Closed

Remove dependence on _nl_msg_cat_cntr #325

doughdemon opened this issue Sep 10, 2024 · 3 comments

Comments

@doughdemon
Copy link
Contributor

The extern variable _nl_msg_cat_cntr in src/intl/libintl.* is an implementation detail of GNU gettext. Other gettext implementations, such as the one used by musl libc do not provide this external variable. I wonder whether there is a way to implement set_language() without depending on this detail. Here is a related bug report: https://bugs.gentoo.org/906895

@rkd77
Copy link
Owner

rkd77 commented Sep 11, 2024

I tried it on Alpine. It compiles, _nl_msg_cat_cntr is found, but changing a language has no effect.

@rkd77
Copy link
Owner

rkd77 commented Sep 11, 2024

Update: When LANG=C.UTF-8 changing languages has no effect. Also on glibc. When LANG is "normal" it worked.

@doughdemon
Copy link
Contributor Author

I should have said that the compilation error only occurred with the -Dgettext=true compile option (so that the external gettext is used). Otherwise, it also compiles on the gentoo musl profile.
The new commit works, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants