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

locale language only en_US #2041

Closed
hnsylzg opened this issue Sep 9, 2023 · 10 comments · Fixed by #2069
Closed

locale language only en_US #2041

hnsylzg opened this issue Sep 9, 2023 · 10 comments · Fixed by #2069

Comments

@hnsylzg
Copy link

hnsylzg commented Sep 9, 2023

archlinux-2023.09.01-x86_64.iso

@svartkanin
Copy link
Collaborator

Could you describe the problem a bit more?

@hnsylzg
Copy link
Author

hnsylzg commented Sep 9, 2023

in archlinux-2023.09.01-x86_64.iso, locale language only has the en_US option, but multiple languages can be selected in archlinux-2023.08.01-x86_64.iso

@amonetlol
Copy link

Here is a preview of the options that appear.

locale-language.png

When you type / , no option appears

@svartkanin
Copy link
Collaborator

Very interesting, I'll have a look

@svartkanin
Copy link
Collaborator

@amonetlol I'm unable to reproduce this
image
image
image

How do you run archinstall? Is it a special script?

@amonetlol
Copy link

amonetlol commented Sep 17, 2023

@svartkanin

I don't do anything special, just set the keyboard layout. However, if I go directly to archinstall it has the same result.

I recorded a video
archinstall

vmware-workstation: 17.0.2-2

@svartkanin
Copy link
Collaborator

Thanks for the video that was very helpful!
Unfortunately I still can't reproduce this 🤔
I did the exact same steps as in the video on a VM using the latest master and the current shipped version on the ISO but both seem to work fine.

The locale languages are populated from the file /etc/locale.gen could you have a look at this file and see what's inside?

@amonetlol
Copy link

@svartkanin

Locale.gen

Found the problem. When the system is loading, some errors about cloud-init appear. This must be the reason for the generation of incomplete locale.gen

I manually inserted the pt_BR language in /etc/locale.gen and now it appears listed as an option.

Screenshot_2023-09-18-17-06-26_3840x1080

@svartkanin
Copy link
Collaborator

Yep seems like cloud-init initialised it that way, not something archinstall can do about

@codefiles
Copy link
Contributor

codefiles commented Sep 19, 2023

I considered this as a possible problem in my comment here #1423 (comment).

  • Provide localedata/SUPPORTED as /usr/share/i18n/SUPPORTED. Though the contents of the glibc localedata/SUPPORTED file is used to create /etc/locale.gen, it would be beneficial if it was also supplied separately as /usr/share/i18n/SUPPORTED since the contents of /etc/locale.gen can be overwritten as it is intended to be edited. It appears this file is being distributed in this manner with the glibc packages in other distributions such as Debian and Gentoo.

The file /usr/share/i18n/SUPPORTED is now provided with the glibc package. I will submit a fix for this that reads options from that file instead of /etc/locale.gen.

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 a pull request may close this issue.

4 participants