Bug 451685 - Missing regional formats lead to crashes in other apps
Summary: Missing regional formats lead to crashes in other apps
Status: RESOLVED DUPLICATE of bug 403580
Alias: None
Product: systemsettings
Classification: Applications
Component: general (show other bugs)
Version: 5.24.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-19 13:47 UTC by simonisfrederic@gmail.com
Modified: 2022-03-26 03:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description simonisfrederic@gmail.com 2022-03-19 13:47:26 UTC
SUMMARY

When selecting regional formats in the KDE system settings, the system does not check if the selected locales are actually installed.
Choosing and applying a missing locale will succeed, but then cause applications to crash that attempt to use said locales.

STEPS TO REPRODUCE
1. open system settings > regional settings > formats
2. select a locale not present on the system
3. apply
4. log out and back in
5. open an app that uses the changed missing locale

OBSERVED RESULT

Some apps crash.

I observed crashes originating from boost::filesystem::path::codecvt() trying to construct a std::locale.

terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid

EXPECTED RESULT

The settings panel should at least warn the user in some way.
One could argue that applying such changes shouldn't be possible. 
Ideally, the missing locales should be installed by KDE.

SOFTWARE/OS VERSIONS
Linux: Arch
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

(Sorry, I couldn't find the system settings in the component menu)
Comment 1 Nate Graham 2022-03-26 03:58:10 UTC

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