Bug 430803

Summary: KCM language applet does not generate locale envs properly
Product: [Applications] systemsettings Reporter: soredake <katyaberezyaka>
Component: kcm_translationsAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: elvis.angelaccio, katyaberezyaka, nate
Priority: NOR    
Version: 5.19.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=384451
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Reginal settings
Ark problem

Description soredake 2020-12-25 08:55:23 UTC
Created attachment 134319 [details]
Reginal settings

SUMMARY
For example reginal formats to "uz_UZ", which is not generated, and results in this regional settings set to C.UTF-8:
```
❯ locale
LANG=C.UTF-8
LANGUAGE=ru:en_US:en_GB:uk
LC_CTYPE="C.UTF-8"
LC_NUMERIC=C.UTF-8
LC_TIME=C.UTF-8
LC_COLLATE=C.UTF-8
LC_MONETARY=C.UTF-8
LC_MESSAGES="C.UTF-8"
LC_PAPER=uk_UA.UTF-8
LC_NAME=uk_UA.UTF-8
LC_ADDRESS=uk_UA.UTF-8
LC_TELEPHONE=uk_UA.UTF-8
LC_MEASUREMENT=C.UTF-8
LC_IDENTIFICATION=uk_UA.UTF-8
LC_ALL=
```

This setup breaks opening archives from dolphin (see ark attachment)

STEPS TO REPRODUCE
1. Go to kcm language settings.
2. Set regional settings to ones with no generated locale.
3. Enjoy C.UTF-8

OBSERVED RESULT
KDE does not warn when switching regional locales to ones with no generated locale available.

EXPECTED RESULT
KDE should warn user when switching regional locales to ones with no generated locale available.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 20.10
(available in About System)
KDE Plasma Version: 5.19.5
KDE Frameworks Version: 5.74.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Comment 1 soredake 2020-12-25 08:55:47 UTC
Created attachment 134320 [details]
Ark problem
Comment 2 soredake 2020-12-25 09:03:21 UTC
Maybe kde should generated unavailable locales when user switches to them.
Comment 3 Nate Graham 2021-01-04 21:04:09 UTC
Yes, that seems more humane.
Comment 4 Nate Graham 2021-01-04 21:04:28 UTC

*** This bug has been marked as a duplicate of bug 384451 ***
Comment 5 Nate Graham 2021-09-30 17:52:54 UTC

*** This bug has been marked as a duplicate of bug 431292 ***