Bug 430803 - KCM language applet does not generate locale envs properly
Summary: KCM language applet does not generate locale envs properly
Status: RESOLVED DUPLICATE of bug 431292
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_translations (show other bugs)
Version: 5.19.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-25 08:55 UTC by soredake
Modified: 2021-09-30 17:52 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Reginal settings (28.08 KB, image/png)
2020-12-25 08:55 UTC, soredake
Details
Ark problem (57.15 KB, image/png)
2020-12-25 08:55 UTC, soredake
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***