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 is non-UTF-8 in bookworm images causing some applications to fail #123

Closed
theofficialgman opened this issue Oct 29, 2023 · 4 comments

Comments

@theofficialgman
Copy link

theofficialgman commented Oct 29, 2023

Locale is non-UTF-8 causing some applications to fail to launch.

https://forums.raspberrypi.com/viewtopic.php?t=357707
davidk/PrusaSlicer-ARM.AppImage#29

Issue observed on Bookworm ARM64 image (October 10th 2023). May be present on ARMhf images as well but I have not tested. Language settings were not modified in rpi-imager which was used the flash the SD card. Language set to US/English during initial setup.

@ghollingworth
Copy link
Contributor

Can you actually define what the issue is? The discussion on the forums doesn’t say what the actual issue is or where it is wrong. As far as we know the issue is one in Debian

@pelwell
Copy link

pelwell commented Oct 29, 2023

As an observer of the issue I would guess that /xdg/locale.gen contains all of the possible locales, including UTF-8 and ISO-8859-*, and that the locale selection logic is choosing an ISO version where it should (for reasons of compatibility) choose the UTF-8 version instead.

@theofficialgman
Copy link
Author

theofficialgman commented Oct 29, 2023

the issue is as described here -> https://forums.raspberrypi.com/viewtopic.php?t=357707#p2144544 . the issue simply put is that .UTF-8 is not added to the end of the language name as it should be.
I have verified this happens on both the ARMhf and ARM64 Bookworm images.

my assumption is the bug is in your initial setup GUI script (piwiz https://github.com/raspberrypi-ui/piwiz) and the language selection.

a quick search of that codebase shows you use raspi-config to set the locale based on user supplied input in the gui:
https://github.com/raspberrypi-ui/piwiz/blob/963cfad174151c051e3b9131443ef13de126d605/src/piwiz.c#L788-L803
https://github.com/raspberrypi-ui/piwiz/blob/963cfad174151c051e3b9131443ef13de126d605/src/piwiz.c#L710-L736

your code does attempt to add the extension .UTF-8 to the end of the name if there is no extension present but this appears to not be happening based on the experience of us users https://github.com/raspberrypi-ui/piwiz/blob/963cfad174151c051e3b9131443ef13de126d605/src/piwiz.c#L876 (or I might be reading that wrong and it removing UTF-8 if present, not sure as I am not a C programmer) . Or, if it is being added, it is being stripped away in some other later process
CC: @spl237

@spl237
Copy link

spl237 commented Oct 30, 2023

OK, I think I've found the problem - the extension for UTF-8 was not being added to the call to raspi-config in the wizard. Will be fixed in the next release.

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

4 participants