Bug 377446

Summary: KServiceGroupPrivate::entries return not all menu items
Product: [Frameworks and Libraries] frameworks-kservice Reporter: Sergey Pushilin <pushilin>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED UPSTREAM    
Severity: normal CC: a.samirh78, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: patch for fix 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.