https://bugs.kde.org/show_bug.cgi?id=451685

            Bug ID: 451685
           Summary: Missing regional formats lead to crashes in other apps
           Product: systemsettings
           Version: 5.24.3
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: simonisfrede...@gmail.com
  Target Milestone: ---

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)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to