Bug 175907 - encoding problem in KToolInvokation::kdeinitExec
Summary: encoding problem in KToolInvokation::kdeinitExec
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeinit (show other bugs)
Version: 4.1
Platform: Compiled Sources Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-23 17:08 UTC by Joseph Wenninger
Modified: 2009-03-16 23:32 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.