Bug 175907

Summary: encoding problem in KToolInvokation::kdeinitExec
Product: [Frameworks and Libraries] kdelibs Reporter: Joseph Wenninger <jowenn>
Component: kdeinitAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: faure, shafff
Priority: NOR    
Version: 4.1   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:

Description Joseph Wenninger 2008-11-23 17:08:09 UTC
Version:            (using Devel)
Installed from:    Compiled sources

If I invoke from kate from a shell
"kate --start "öäüß" the session is correctly named with the German umlauts

If the same is tried with
KToolInvokation::kdeinitExec("kate",args);
the session name kate gets is garbage. It looks like kdeinit interprets utf-8 as latin-1 and converts that back to utf-8.

kDebug<<args; displays the umlauts correctly, and displaying the second argument in a message box looks okay too, so I'm sure the encoding of the arguments, I'm passing to kdeinitExec is correct.

How to reproduce it:
Create a session with umlauts in kate.
Try to open it with the kate plasma session runner or the kate plasmoid.
Comment 1 Joseph Wenninger 2009-03-16 23:32:37 UTC
It looks like this has been fixed by the fix for the general command line handling problem related to non ascii characters.