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

            Bug ID: 447903
           Summary: New regional format in 5.24 generates incorrect
                    plasma-localerc
           Product: systemsettings
           Version: master
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_formats
          Assignee: plasma-b...@kde.org
          Reporter: herzensch...@gmail.com
                CC: hanyo...@protonmail.com
  Target Milestone: ---

SUMMARY
I believe this is a major breaking bug which is common but not that
discoverable and that ought not to end up in the final release of 5.24.

With Plasma 5.23, plasma-localerc is correctly generated via the System
Settings KCM:

[Formats]
LANG=pt_BR.UTF-8

With Plasma from git (5.24), it is generated without the .UTF-8 bit:

[Formats]
LANG=pt_BR

Which causes a few issues:

* It's impossible to type accents, however รง works

* On X11, the following error shows up on the terminal whenever you type an
accent key in a Qt application:

qt.xkb.compose: failed to create compose table

* On Wayland, the following error shows up on the terminal under the same
conditions, where the first line is repeated around 10 times:

xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: string literal
is not a valid UTF-8 string
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: too many
errors
xkbcommon: ERROR: /usr/share/X11/locale/iso8859-1/Compose:49:29: failed to
parse file
qt.qpa.input.methods: failed to create compose table

This does not occur on non-Qt applications (tigervnc, Firefox).

I managed to reproduce this issue 100% because I can trivially switch between
openSUSE Krypton and Tumbleweed. After downgrading to Tumbleweed (with Plasma
5.23), deleting the plasma-localerc, using the Formats KCM to set the format to
Brazil, and then rebooting, the issue is resolved; after upgrading to Krypton
(with Plasma from git / 5.24), deleting the plasma-localerc, using the Formats
KCM to set the format to Brazil, and then rebooting, the issue is reproduced.

That is to say: it's hard to discover this bug because the config file needs to
be updated with the new settings, so a user upgrading from 5.23 would likely
not notice it, yet a new user will.

STEPS TO REPRODUCE

Small note: I haven't yet tested with other distros, but given how easy this
one is to reproduce...

1. Get a distro or live image or build with Plasma from git
2. Delete the file ~/.config/plasma-localerc
3. Go to the Formats section of the Regional Formats KCM
4. Set it to Brazil format
5. Look at the new ~/.config/plasma-localerc

OBSERVED RESULT
The file contains:
[Formats]
LANG=pt_BR

EXPECTED RESULT
The file should contain:
[Formats]
LANG=pt_BR.UTF-8

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

Reply via email to