[PATCH] BUG 172567 support non ASCII user name to login in
faure at kde.org
Mon Oct 13 23:30:01 BST 2008
On Monday 13 October 2008, Thiago Macieira wrote:
> David Faure wrote:
> >Hmm, but creating a QCoreApplication in kdeinit is a bad idea, since
> > kdeinit forks+dlopens kdeinit modules (and kioslaves), which will then
> > end up with two Q[Core]Applications...
> >Is there a way to initialize fromLocal8Bit/toLocal8Bit without a
> > QCoreApplication?
> setlocale(LC_ALL, "");
... is already done in kinit.cpp, so I'm still confused by all this
(it's done too late maybe?)
> But there's no guarantee that something else won't break in the future. Qt
> is not supported without QCoreApplication. QFile, for instance.
> When I looked at the code, I thought it was klauncher (the second phase,
> the one that actually uses Qt). I hadn't realised that kdeinit4 itself
> used Qt code.
kdeinit4 has to look for stuff (libs, executables, etc.); for that it uses KStandardDirs
and QFile::encodeName/decodeName; hopefully this doesn't really count as
"QFile" usage ;). There's a call to QFont::initialize but that's actually a performance
optimization (doing it only once for all kde apps).
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the kde-core-devel