| Summary: | KServiceGroupPrivate::entries return not all menu items | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kservice | Reporter: | Sergey Pushilin <pushilin> |
| Component: | general | Assignee: | 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 | ||
Sorry. In pure Qt4 application QTextCodec::codecForLocale()->name() is "System". In pure Qt5 application QTextCodec::codecForLocale()->name() is ""US-ASCII" I found the reason. qt use icu "converter.default" settings. BUG in my locale settings (set is empty LC_ALL variable). |
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".