Bug 451920

Summary: Changing format settings causes issues in applications
Product: [Applications] systemsettings Reporter: David <david.cortes.rivera>
Component: kcm_formatsAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: hanyoung, nate
Priority: NOR    
Version: 5.24.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description David 2022-03-26 08:53:35 UTC
SUMMARY
If I change some specific format in the system settings without changing the global, some applications will complain about something like LC_TYPE - e.g.:
During startup - Warning message:
Setting LC_TIME failed, using "C"

STEPS TO REPRODUCE
1. Go to Sytem Settings -> Regional Settings -> Formats.
2. Set the region to "en_US.UTF-8".
3. Reboot the computer.
4. Go back to the same place in the settings, but this time set the time format to something non-default, such as "en_DE.UTF-8".
5. Reboot the computer.
6. Use random non-KDE applications and see what they have to say. For example, try using R (in debian, this is package "r-base").

OBSERVED RESULT
R says:
During startup - Warning message:
Setting LC_TIME failed, using "C"

EXPECTED RESULT
Programs should not complain about format settings.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.0-5-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD VEGA10
Comment 1 Nate Graham 2022-03-26 16:19:09 UTC
Can you paste the output of `cat ~/.config/plasma-localerc`?
Comment 2 David 2022-03-26 19:56:04 UTC
(In reply to Nate Graham from comment #1)
> Can you paste the output of `cat ~/.config/plasma-localerc`?

Output is as follows:
[Formats]
LANG=en_US.UTF-8
LC_TIME=en_DE.UTF-8
Comment 3 David 2022-03-28 16:49:21 UTC
As a bonus, depending on what's configured for the regional settings, JuK might take a long time to be able to play songs from the main window when just launched (they will show as greyed out in the meantime, and will not play when clicked, but individual playlists - if any - can be played in the meantime), and under some other configurations, Klickety might take a very long time to show a GUI when launched (without showing any message during the loading time).
Comment 4 hanyoung 2022-03-28 16:52:18 UTC
Because the locales haven't been generated.
Comment 5 Nate Graham 2022-03-28 22:30:58 UTC

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