[deimos at deimos.one.pl: [Bug 56695] New: kaddressbook iso-8859-2 mismath in to: header using send via kmail]

Tobias Koenig tokoe at kde.org
Tue Apr 1 23:32:42 BST 2003


On Tue, Apr 01, 2003 at 10:08:53PM +0200, David Faure wrote:
> On Tuesday 01 April 2003 21:27, Tobias Koenig wrote:
Hi David,

> > since kaddressbook uses the normal kapp-invokeMailer() method I guess
> > it's a bug inside invokeMailer().
> > Could somebody take a look at it?
> 
> Hmm, usually command-line arguments are in local8bit encoding.
> But when communicating between two KDE programs, I guess we should rather
> use UTF-8. Otherwise such "out of the local encoding" strings can't be passed
> around.
> [Disclaimer: this is only a wild guess at what the problem could be.]
>From KApplication::invokeMailer() till
KApplication::startServiceInternal() only QStrings/QStringList is used.
Then all stuff is written to QByteArray (shouldn't change anything,
or?). In KLauncher::process() the QByteArray is converted to QString
again and in KLauncher::kdeinit_exec() the arguments are converted to
local8Bit().
So where could the problem be?

Maybe the KShell::splitArgs() method, that is called in
KApplication::invokeMailer() changes the encoding?

Ciao,
Tobias
-- 
The Bush administration are war criminals.




More information about the kde-core-devel mailing list