Bug 254291 - Fix early i18n() usage
Summary: Fix early i18n() usage
Status: RESOLVED DUPLICATE of bug 251606
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-15 19:42 UTC by Christoph Feck
Modified: 2010-11-06 12:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Feck 2010-10-15 19:42:52 UTC
Version:           svn trunk (using Devel) 
OS:                Linux

When you start krita (or any other koffice app that uses libpigment) on current trunk, the following self-explanatory debug message appears:

KGlobal::locale::Warning your global KLocale is being recreated with a valid
main component instead of a fake component, this usually means you tried to
call i18n related functions before your main component was created. You should
not do that since it most likely will not work

The issue is that in "libs/pigment/KoColorModelStandardIds.cpp" static objects are created using i18n() calls before KDE has a chance to initialize the KGlobal object for the application.


Reproducible: Always
Comment 1 Halla Rempt 2010-11-06 12:00:13 UTC
Duplicate of 251606, see my patch there.

*** This bug has been marked as a duplicate of bug 251606 ***