Summary: | Region & Language sets language to non-UTF-8 locale | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Gurenko Alex <agurenko> |
Component: | kcm_regionandlang | Assignee: | Plasma Bugs List <plasma-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | 2236340649, hanyoung, kde, nate |
Priority: | NOR | ||
Version First Reported In: | 5.26.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/85ffb10a44c7f8ee0169033af350a740c2b7e0aa | Version Fixed In: | 5.27 |
Sentry Crash Report: |
Description
Gurenko Alex
2022-11-17 13:03:56 UTC
Okay, for some reasons after reboot some "en_DE.UTF-8" got changed to "C.UTF-8" and if I pick "C" it sets it to "C" and not "C.UTF-8" (In reply to Gurenko Alex from comment #1) > Okay, for some reasons after reboot some "en_DE.UTF-8" got changed to > "C.UTF-8" and if I pick "C" it sets it to "C" and not "C.UTF-8" We don't magically change config files. (In reply to hanyoung from comment #2) > (In reply to Gurenko Alex from comment #1) > > Okay, for some reasons after reboot some "en_DE.UTF-8" got changed to > > "C.UTF-8" and if I pick "C" it sets it to "C" and not "C.UTF-8" > > We don't magically change config files. Okay, my mistake, lets put it this way, following config: $ cat .config/plasma-localerc [Formats] LANG=en_US.UTF-8 LC_ADDRESS=C.UTF-8 LC_MEASUREMENT=C.UTF-8 LC_MONETARY=C.UTF-8 LC_NAME=C.UTF-8 LC_NUMERIC=C.UTF-8 LC_PAGE=C.UTF-8 LC_TELEPHONE=C.UTF-8 LC_TIME=C.UTF-8 [Translations] LANGUAGE=en_US.UTF-8 results in a following locale settings after reboot: $ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC=C.UTF-8 LC_TIME=C.UTF-8 LC_COLLATE="en_US.UTF-8" LC_MONETARY=C.UTF-8 LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Can reproduce the originally-reported issue of the non-UTF8 versions of languages being specified in cat ~/.config/plasma-localerc. what is the result of `ls /usr/share/i18n/locales` ? (In reply to hanyoung from comment #5) > what is the result of `ls /usr/share/i18n/locales` ? It's empty for me (In reply to Gurenko Alex from comment #6) > (In reply to hanyoung from comment #5) > > what is the result of `ls /usr/share/i18n/locales` ? > > It's empty for me I know the cause, we use contents of this directory to map language code to glibc locale. If the directory is empty, the language code is passed through, no UTF-8 appended. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2397 Git commit 85ffb10a44c7f8ee0169033af350a740c2b7e0aa by Nate Graham, on behalf of Han Young. Committed on 26/12/2022 at 17:05. Pushed by ngraham into branch 'master'. kcms/region_language: find available locales in localectl FIXED-IN: 5.27 Not an ideal fix, but a fix without rewriting the entire language selection page. M +46 -3 kcms/region_language/kcmregionandlang.cpp M +10 -2 kcms/region_language/kcmregionandlang.h M +11 -8 kcms/region_language/languagelistmodel.cpp M +6 -5 kcms/region_language/languagelistmodel.h M +1 -1 kcms/region_language/package/contents/ui/AdvancedLanguageSelectPage.qml M +13 -0 kcms/region_language/package/contents/ui/main.qml https://invent.kde.org/plasma/plasma-workspace/commit/85ffb10a44c7f8ee0169033af350a740c2b7e0aa *** Bug 479542 has been marked as a duplicate of this bug. *** |