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

Akseli Lahtinen <akse...@akselmo.dev> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-workspace/-/commi |ma/plasma-workspace/-/commi
                   |t/5e2c176a6e386339ce17eb4ff |t/a247fd424e000b3be95298be4
                   |f9a137f34e1d323             |cd25bcb6ef9d8b6

--- Comment #24 from Akseli Lahtinen <akse...@akselmo.dev> ---
Git commit a247fd424e000b3be95298be4cd25bcb6ef9d8b6 by Akseli Lahtinen.
Committed on 19/09/2024 at 13:53.
Pushed by akselmo into branch 'Plasma/6.2'.

kcmregionandlang.cpp: Clear baseLocaleMap strings from ".UTF-8" and similar
text

When constructing the baseLocaleMap, we also have the
.UTF-8 after the glibcLocale in the map.
Later in "fullMatch" iterator this breaks the matching,
since we're comparing for example "en_GB" to "en_GB.UTF-8".

They're both the same thing, but since the strings do not match,
we do not get the exact values and end up doing a lot of extra
work to match the locale to closest possible one with heuristics,
even though we have exact match already.

Removing the .UTF-8 and other similar parts from the prefixedLocales
list fixes the issue and allows full matching.
FIXED-IN: 6.2.0


(cherry picked from commit 5e2c176a6e386339ce17eb4fff9a137f34e1d323)

9abdfe55 kcmregionandlang.cpp: Clear baseLocaleMap items from UTF-8 and similar
items

Co-authored-by: Akseli Lahtinen <akse...@akselmo.dev>

M  +4    -2    kcms/region_language/kcmregionandlang.cpp

https://invent.kde.org/plasma/plasma-workspace/-/commit/a247fd424e000b3be95298be4cd25bcb6ef9d8b6

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

Reply via email to