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
[Bug]: not all languages recognised with mixed locale and thus not used for Locale extensions #5497
Comments
I too have this issue, running |
Update, from reading the other report on hugolabe I found this (somewhat simple) workaround:
Feel free to replace en_DK with your language of choice and io.gitlab.news_flash.NewsFlash with the flatpak in question. This is just forcing that locale on everything in the flatpak, and at least for me that's sufficient to solve matters :) |
yes but it's hacky |
Complete agree, it's definitely not a complete solution, more of a workaround for the time being until the actual issue is fixed :-) |
As an additional data point, I am having the same problem but use the following language settings:
As I install most Flatpak apps as user, I used I am on Ubuntu 23.10 with GNOME. |
Same bug just happened with me in A very easy way to reproduce it in GNOME is to change GNOME Settings "formats" in "Region & Language" to a locale that doesn't match the language that you have, after a logout login Flatpak doesn't recognizes that it has to download the new added locale ( A workaround for this issue in GNOME is to change the language of the system to match the locale you desire, logout and login, update Flatpak with Maybe Flatpak should detect the missing locale and ask for an update but there is probably a wiser solution that I'm not seeing to just make it not crash. |
The current workaround is to let flatpak know that your using mixed languages: For me: flatpak config --set languages "en;nl"
flatpak update |
I was sure this used to work, at least for system locales (via localed). It looks like it regressed recently in #5018. Flatpak now exclusively uses AccountsService's Harder to fix is the multi-user case where the locale is set via AccountsService rather than localed. In GNOME, currently only the primary language is set there; the Formats locale is set in a GSettings key, so flatpak can't know about it without GNOME-specific code. In GNOME/gnome-control-center#1969 (comment), @hadess suggested that Formats should select between languages that have been set in AccountsService, which would nicely solve this issue for flatpak. The user installation does work correctly because it honors the Separately, it would nice if glibc could fall back to |
This restores support for 'mixed' system locales where different locale categories are configured with different languages. AccountsService currently only includes the LC_MESSAGES language from the system locale. Helps flatpak#5497
This restores support for 'mixed' system locales where different locale categories are configured with different languages. AccountsService currently only includes the LC_MESSAGES language from the system locale. Helps #5497
This restores support for 'mixed' system locales where different locale categories are configured with different languages. AccountsService currently only includes the LC_MESSAGES language from the system locale. Helps flatpak#5497
Checklist
Flatpak version
Flatpak 1.14.4
What Linux distribution are you using?
Pop!_OS
Linux distribution version
pop os 22.04
What architecture are you using?
x86_64
How to reproduce
No response
Expected Behavior
I am using
on Pop_OS! 22.04 with a mixed locale:
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=
and localectl list-locales
flatpak config and flatpak --user config don't report the fr:
It should already include #4411, yet French is not selected as a locale for me.
This led to hugolabe/Wike#136 where the WebKit view does not work with its process crashing, similarly to #3712:
Actual Behavior
Additional Information
hugolabe/Wike#136
The text was updated successfully, but these errors were encountered: