kcmdlineargs input decoding
Nick Shaforostoff
shaforostoff at gmail.com
Wed Feb 25 15:07:06 GMT 2009
Hi. Opening files with non-ASCII names via cmd line in any KDE app
isn't possible on my system,
as args are misencoded due to QString::fromLocal8Bit() returning
different data before and after QApplication creation.
Attached patch fixes the issue by delaying conversion and moving it to
KCmdLineArgs::arg(),
as a side affect it switches KCmdLineArgs args processing to use
QByteArray internaly,
which is a little bit more memory efficient.
Please review.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: open-cyr-files.patch
Type: application/octet-stream
Size: 13218 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090225/ed7502b8/attachment.obj>
More information about the kde-core-devel
mailing list