From kde-core-devel Sun Mar 15 14:29:08 2009 From: Allen Winter Date: Sun, 15 Mar 2009 14:29:08 +0000 To: kde-core-devel Subject: Re: kcmdlineargs input decoding Message-Id: <200903151029.09326.winter () kde ! org> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=123712742406403 On Wednesday 25 February 2009 10:07:06 am Nick Shaforostoff wrote: > 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. > Some form of this patch has been committed. Right? -- Allen Winter | Software Engineer | 1-888-872-9339 KDAB, Inc. | "Platform-independent software solutions" http://kdab.com | 1-866-777-5322 (US) | +46-563-540090 (Sweden)