Bug 459297 - "Frequently used" page text is sometimes shown with question marks instead of UTF-8 characters
Summary: "Frequently used" page text is sometimes shown with question marks instead of...
Status: RESOLVED WORKSFORME
Alias: None
Product: systemsettings
Classification: Applications
Component: Quick Settings (show other bugs)
Version: 5.25.90
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-09-17 17:58 UTC by Ilya Bizyaev
Modified: 2023-07-23 13:57 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot of the "Quick Settings" page with Russian locale (139.56 KB, image/png)
2022-09-17 17:58 UTC, Ilya Bizyaev
Details
Replaced characters in French (31.36 KB, image/png)
2022-09-17 21:54 UTC, Ilya Bizyaev
Details
Question marks in Konsole too (111.97 KB, image/jpeg)
2022-10-25 20:16 UTC, Nate Graham
Details
konsole renders fine (88.53 KB, image/png)
2022-10-25 21:29 UTC, ratijas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Bizyaev 2022-09-17 17:58:58 UTC
Created attachment 152168 [details]
Screenshot of the "Quick Settings" page with Russian locale

SUMMARY

This happens when I use Russian or Ukrainian locale:
LC_ALL=ru_RU.UTF-8 systemsettings5
LC_ALL=uk_UK.UTF-8 systemsettings5

This does not happen when I use the English locale:
LC_ALL=en_US.UTF-8 systemsettings5

SOFTWARE/OS VERSIONS

Operating System: openSUSE Leap 15.4
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.5
Graphics Platform: Wayland
Graphics Processor: Mesa Intel® UHD Graphics

ADDITIONAL INFORMATION

I had never noticed this bug until 5.25.90, so it's likely new.
Comment 1 Nicolas Fella 2022-09-17 19:30:32 UTC
???? ?? ???

Can't reproduce by setting my system to russian.

Could this be an encoding issue and "broken" chars are replaced by '?'
Comment 2 Ilya Bizyaev 2022-09-17 21:53:27 UTC
It is a problem with encoding, as counts of question marks correspond to the counts of letters in each word. I can reproduce with French, which makes me think that somewhere there is an attempt to convert UTF-8 to ASCII...
Comment 3 Ilya Bizyaev 2022-09-17 21:54:05 UTC
Created attachment 152170 [details]
Replaced characters in French
Comment 4 Nicolas Fella 2022-09-18 10:42:38 UTC
Do you see this issue in other places as well?

The kcm name is read from a KService (https://invent.kde.org/plasma/plasma-desktop/-/blob/master/kcms/landingpage/landingpage.cpp#L130), maybe the ksycoca cache is corrupt/broken. If that's the case then running kbuildsycoca5 might fix it
Comment 5 Ilya Bizyaev 2022-09-18 10:48:39 UTC
I haven't found this issue anywhere else; tried running `kbuildsycoca5 --noincremental` just now, that didn't help
Comment 6 Ilya Bizyaev 2022-09-18 11:00:35 UTC
Some other info:
* `rm -rf ~/.cache/systemsettings/qmlcache` didn't help
* I tried running systemsettings5 under GammaRay, and Label.text is the same as it's on the screen; changing it to the valid one makes it display just fine
* It's interesting that one of the KCM names is not corrupted in Russian, but is corrupted in Ukrainian, even though both of them consist of Cyrillic letters
Comment 7 Nicolas Fella 2022-09-18 11:02:15 UTC
if you search for one of the affected KCMs in kickoff, is the name displayed correctly?
Comment 8 Ilya Bizyaev 2022-09-18 11:03:50 UTC
Yes, they are even displayed correctly everywhere else in System Settings
Comment 9 Nate Graham 2022-09-22 17:41:03 UTC
how utterly bizarre.
Comment 10 ratijas 2022-09-27 12:03:27 UTC
I occasionally test stuff under different user accounts in russian and arabic locales, but I've never seen anything like this.
Comment 11 Andrey 2022-09-27 12:17:48 UTC
Can we try to reproduce it on Neon in VM?
Comment 12 Harald Sitter 2022-10-24 09:42:10 UTC
I'd really like this reproduced in a clean environment a developer can recreate, otherwise I see no way this is going to get fixed.
Comment 13 Ilya Bizyaev 2022-10-24 09:55:42 UTC
I'm unlikely to invest time into reproducing this in a VM unless another user reproduces the problem locally.
Comment 14 Nate Graham 2022-10-25 20:16:54 UTC
Created attachment 153205 [details]
Question marks in Konsole too

FWIW I've started to see the same thing in Konsole (see attachment) so this may be a more general issue deeper in the stack.
Comment 15 ratijas 2022-10-25 21:29:40 UTC
Created attachment 153206 [details]
konsole renders fine

Konsole renders that commit just fine for me. Overall, seems extremely unlikely to be connected to the original bug report.
Comment 16 Nate Graham 2022-10-26 17:50:12 UTC
For people who are are affected, can you paste the output of `env | grep -i lang`?
Comment 17 Ilya Bizyaev 2022-10-26 23:10:37 UTC
LANG=ru_RU.UTF-8
LANGUAGE=
Comment 18 Nate Graham 2022-10-27 16:27:33 UTC
Well, there goes my theory. :/ I fixed my Konsole issue by changing "LANG=en_US" to "LANG=en_US.UTF-8", so I was wondering if you might have been suffering from the same thing.
Comment 19 Ilya Bizyaev 2022-10-27 20:53:57 UTC
I can reproduce the issue on this virtual machine:
http://download.opensuse.org/repositories/KDE:/Medias/images/iso/Argon.x86_64.iso

Boot, launch System Settings, click a few KCMs (mostly in Appearance) a few times, close System Settings. Then launch System Settings with a Russian locale (from Konsole):
$ LC_ALL=ru_RU.UTF-8 systemsettings5 

You'll see the question marks.
Comment 20 Ilya Bizyaev 2023-07-23 13:57:11 UTC
I can no longer reproduce this on my system (switched to openSUSE Tumbleweed at some point), so closing.