Bug 456139

Summary: Numeric mode, posix collation implementation : many lines printed on terminal after opening the settings
Product: [Applications] krita Reporter: David REVOY <info>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: alvin, halla
Priority: NOR    
Version First Reported In: 5.1.0-beta1   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
URL: https://invent.kde.org/sysadmin/ci-images/-/merge_requests/44
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David REVOY 2022-06-29 17:29:53 UTC
Hi, 

When I open the settings on Krita 5.1(beta1)~appimage, I have many lines printed in the terminal suddently: 597 lines telling the same things, and then it ends with another message:

```
[...]
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Numeric mode unsupported in the posix collation implementation
Failed to fetch display info: "current platform doesn't support fetching display information"
```

It doesn't affect stability and only appear on the terminal, so I marked this bug as 'minor'.

It might have something to do with my French numeric mode being with number using comma instead of dot as a separator while I'm using a local in English for the software translation.  This mix of FR_fr numerics and EN_Us locales sometimes doesn't blend well together.
Comment 1 Alvin Wong 2022-06-29 17:35:34 UTC
Yeah, this has been known for some time and also happens on en_US locale. It is caused by the update of the AppImage base from Ubuntu 16.04 to 18.04. I have no idea what exact change caused these to appear, though a potential fix is to build Qt with the ICU library.
Comment 2 Halla Rempt 2022-07-05 15:27:12 UTC
See https://invent.kde.org/qt/qt/qtbase/-/blob/v5.12.12/src/corelib/tools/qcollator_posix.cpp#L58

libs/widgetutils/xmlgui/KisShortcutsEditorItem.cpp
Comment 3 Alvin Wong 2022-07-08 11:28:10 UTC
Should be gone in the latest AppImage builds.
Comment 4 David REVOY 2022-07-08 13:28:13 UTC
I confirm, I can no longer reproduce when I open the settings, thanks!