Review Request 122300: Fix quoteArgs for spaces that are not the regular space

David Faure faure at kde.org
Thu Jan 29 07:46:04 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122300/#review74967
-----------------------------------------------------------


Shouldn't splitArgs be fixed instead? After all a real shell would not split on that character, would it?

- David Faure


On Jan. 28, 2015, 11:24 p.m., Albert Astals Cid wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122300/
> -----------------------------------------------------------
> 
> (Updated Jan. 28, 2015, 11:24 p.m.)
> 
> 
> Review request for KDE Frameworks, David Faure, Eike Hein, and Michael Pyne.
> 
> 
> Bugs: 343380
>     https://bugs.kde.org/show_bug.cgi?id=343380
> 
> 
> Repository: kcoreaddons
> 
> 
> Description
> -------
> 
> We need to also quote spaces like the Unicode character 'IDEOGRAPHIC SPACE' (U+3000) in KShell::quoteArg since KShell::splitArgs is using QChar::isSpace to decide when a new argument starts, without the quoting, one argument will get turned into two
> 
> 
> Diffs
> -----
> 
>   autotests/kshelltest.cpp 451bbe9 
>   src/lib/util/kshell_unix.cpp e0e884f 
> 
> Diff: https://git.reviewboard.kde.org/r/122300/diff/
> 
> 
> Testing
> -------
> 
> New test passes, bug 343380 is fixed
> 
> 
> Thanks,
> 
> Albert Astals Cid
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20150129/395451a3/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list