Summary: | fail to encrypt file whose path contains non-ascii characters - Patch proposed | ||
---|---|---|---|
Product: | [Applications] kgpg | Reporter: | gouzhuang |
Component: | general | Assignee: | Rolf Eike Beer <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Proposed patch |
Description
gouzhuang
2009-07-22 08:49:43 UTC
Created attachment 35527 [details]
Proposed patch
removed all unnecessary QFile::encodeName() calls. As QFile::encodeName() converts a unicode string to local encoding, however when the resulting QByteArray is passed to KProcess, it is converted back to unicode. if the QFile::setEncodingFunction() was called with a encoder other the default, the final unicode string may not be the same as original.
Thanks for the patch. I'll test it in the next days. SVN commit 1029477 by dakon: don't use QFile::encodeName() for strings that are passed as KProcess options Patch provided by gouzhuang(.)gmail.com. Sorry for the delay. BUG:201070 M +13 -19 kgpgtextinterface.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1029477 |