Skip to content

Backport !1344 “fedora-langpacks: Drop codeset and modifier from locale” to gnome-42

Previously a UTF-8 suffix was removed from the locale strings by the caller. See 7a838ffb.

However, now the plugin receives locale string with codeset (UTF-8) information, which should be removed to match langpacks. The locale can also include a modifier (@cyrillic), which should also be removed.

Due to this, langpacks for zh_*, en_GB and pt_BR were not getting installed. This change fixes the issue.

Update fedora-langpacks test case for locale with codeset information.

Signed-off-by: Sundeep Anand suanand@redhat.com

Fixes: #1747 (closed)


Trivial backport of !1344 (merged) to gnome-42.

Merge request reports