Skip to content

Mention that Locales and Translations section is specific to glibc#822

Merged
classabbyamp merged 1 commit into
void-linux:masterfrom
grtcdr:master
Dec 18, 2024
Merged

Mention that Locales and Translations section is specific to glibc#822
classabbyamp merged 1 commit into
void-linux:masterfrom
grtcdr:master

Conversation

@grtcdr

@grtcdr grtcdr commented Nov 24, 2024

Copy link
Copy Markdown
Contributor

This pull request closes issue #821.

@abenson

abenson commented Nov 24, 2024

Copy link
Copy Markdown
Contributor

I'd explain that musl doesn't support locales.

@grtcdr

grtcdr commented Nov 24, 2024

Copy link
Copy Markdown
Contributor Author

I'll do that right away.

@grtcdr grtcdr force-pushed the master branch 2 times, most recently from 42633a3 to 547f1b0 Compare November 24, 2024 17:07
@grtcdr

grtcdr commented Nov 24, 2024

Copy link
Copy Markdown
Contributor Author

Would you consider https://wiki.gnome.org/Initiatives(2f)Wayland(2f)Applications.html a reasonable replacement for the currently broken GNOME link?

Here's an archived version of that URL for comparison: https://web.archive.org/web/20240620195313/https://wiki.gnome.org/Initiatives/Wayland/GTK%2B

@classabbyamp

Copy link
Copy Markdown
Member

setting LANG should still work on musl for applications, iirc

@grtcdr

grtcdr commented Nov 24, 2024

Copy link
Copy Markdown
Contributor Author

Does that environment variable have any effect though? https://wiki.musl-libc.org/environment-variables doesn't list it.

EDIT: It seems that it does, https://wiki.musl-libc.org/functional-differences-from-glibc.html says under the "Default locale" section, "In the absence of the LANG and LC_* environment variables, POSIX leaves the default locale (used when "" is passed to setlocale) implementation-defined.".

@grtcdr

grtcdr commented Nov 24, 2024

Copy link
Copy Markdown
Contributor Author

@classabbyamp: I phrased things differently to take into account the fact that musl does indeed support LANG. It would be great if the musl documentation had anchors for the different headings because then we could reference that section.

@classabbyamp

Copy link
Copy Markdown
Member

musl itself doesn't support LANG, but most applications will use LANG to set the language, even in the absence of system locale support (like on musl)

@classabbyamp

Copy link
Copy Markdown
Member

/etc/locale.conf is just sourced by a profile.d snippet (/etc/profile.d/locale.sh) so it should apply regardless

@grtcdr

grtcdr commented Nov 24, 2024

Copy link
Copy Markdown
Contributor Author

I understand, I said it wasn't required because it apparently isn't. That statement does not negate yours, though.

Comment thread src/config/locales.md Outdated
Comment thread src/config/locales.md Outdated
Comment thread src/config/locales.md Outdated

@classabbyamp classabbyamp left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please squash your commits into 1 with all these changes, then this should be good to go

Comment thread src/config/locales.md Outdated
Closes: void-linux#821

Co-authored-by: classabbyamp <5366828+classabbyamp@users.noreply.github.com>
@grtcdr

grtcdr commented Dec 18, 2024

Copy link
Copy Markdown
Contributor Author

Okay, all set :)

@classabbyamp classabbyamp merged commit a41b118 into void-linux:master Dec 18, 2024
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

Successfully merging this pull request may close these issues.

3 participants