t2sde icon indicating copy to clipboard operation
t2sde copied to clipboard

cross compiled glibc should install locales, or postinstall

Open rxrbln opened this issue 3 years ago • 6 comments

Currently a cross compiled glibc is missing all the pre-compiled locales. We should either hack those to generate somehow, or run the most important ones (en_US.UTF-8?) postinstall.d

rxrbln avatar Jul 28 '21 12:07 rxrbln

crosstool-ng simply copies locales from native build, it's far from ideal though.

lenticularis39 avatar Jul 28 '21 17:07 lenticularis39

Also on musl, by design, the locale always points out to the internal musl C.UTF-8 locale so we might add LANG="C.UTF-8" in the /etc/profile.d/locale as a default to the install menu when installing a musl target or something.

N0T4G avatar Nov 30 '21 19:11 N0T4G

Also on musl, by design, the locale always points out to the internal musl C.UTF-8 locale so we might add LANG="C.UTF-8" in the /etc/profile.d/locale as a default to the install menu when installing a musl target or something.

cool, does glibc supports C.UTF-8?

rxrbln avatar Nov 30 '21 21:11 rxrbln

Support has been added to glibc and is stated to ship in 2.35 (aka next release).

Maybe we could try and import the 16 patches from this commit but meh: https://sourceware.org/git/?p=glibc.git;a=commit;h=466f2be6c08070e9113ae2fdc7acd5d8828cba50

N0T4G avatar Dec 28 '21 16:12 N0T4G

yeah, I saw your message on discord and was thinking about it. But in the grand scheme of things I considered it too minor to break stuff now in the last minute when we just get it automatically next year. The 21.12 release will run localdef for the chosen language ;-)

rxrbln avatar Dec 28 '21 17:12 rxrbln

https://git.adelielinux.org/adelie/musl-locales/-/wikis/home

N0T4G avatar Feb 29 '24 12:02 N0T4G