| Summary: | New regional format in 5.24 generates incorrect plasma-localerc | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Thiago Sueto <herzenschein> |
| Component: | kcm_formats | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | hanyoung, kde, nate |
| Priority: | VHI | Keywords: | regression |
| Version First Reported In: | master | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/plasma/plasma-workspace/commit/083ef23af2d0577e21a4a18654616500fca593f5 | Version Fixed/Implemented In: | 5.24 |
| Sentry Crash Report: | |||
|
Description
Thiago Sueto
2022-01-03 23:02:05 UTC
Forgot to mention: to reproduce this, the file should be generated after the update has been applied, of course. So after a logout/login. Old code that got lost:
QString cvalue = locale.name();
if (!cvalue.contains(QLatin1Char('.')) && cvalue != QLatin1Char('C')) {
// explicitly add the encoding,
// otherwise Qt doesn't accept dead keys and garbles the output as well
cvalue.append(QLatin1Char('.') + QTextCodec::codecForLocale()->name());
}
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/1342 Git commit 083ef23af2d0577e21a4a18654616500fca593f5 by Nate Graham, on behalf of David Edmundson. Committed on 10/01/2022 at 17:26. Pushed by ngraham into branch 'master'. [kcms/formats] Write text codec into localerc files In the port this snippet got lost. Without the suffix we lose information needed by clients. This patch will also affect the names presented as a subtitle in the list. If that is undesired we can introduce a new role. M +7 -1 kcms/formats/localelistmodel.cpp https://invent.kde.org/plasma/plasma-workspace/commit/083ef23af2d0577e21a4a18654616500fca593f5 |