Bug 377446 - KServiceGroupPrivate::entries return not all menu items
Summary: KServiceGroupPrivate::entries return not all menu items
Status: RESOLVED UPSTREAM
Alias: None
Product: frameworks-kservice
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-10 06:05 UTC by Sergey Pushilin
Modified: 2021-08-28 17:12 UTC (History)
2 users (show)

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


Attachments
patch for fix this bug (506 bytes, patch)
2017-03-10 06:05 UTC, Sergey Pushilin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Pushilin 2017-03-10 06:05:04 UTC
Created attachment 104483 [details]
patch for fix this bug

In KServiceGroupPrivate::entries use conversion nameStr = name.toLocal8Bit().
In my system has bug, QTextCodec::codecForLocale()->name() is "US-ASCII" , system locale ru_RU.UTF-8.
Russian menu item Games and Office - "Игры" and "Офис" translate to identical strings "????" and show only one menu item.

In the attachment, the patch fixes this bug.

Please help me to find settings location for QTextCodec::codecForLocale().

ps.
In pure Qt application QTextCodec::codecForLocale()->name() is "System".
Comment 1 Sergey Pushilin 2017-03-10 09:51:57 UTC
Sorry. 
In pure Qt4 application QTextCodec::codecForLocale()->name() is "System".
In pure Qt5 application QTextCodec::codecForLocale()->name() is ""US-ASCII"
Comment 2 Sergey Pushilin 2017-03-10 14:04:05 UTC
I found the reason. qt use icu "converter.default" settings. BUG in my locale settings (set is empty LC_ALL variable).
Comment 3 Ahmad Samir 2021-08-28 17:12:11 UTC
Closing per comment#2.