Review Request: fix kio_activities cannot handle utf8 file name/path

David Faure faure at kde.org
Thu Jul 12 17:20:53 BST 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105222/#review15736
-----------------------------------------------------------



workspace/kio/kio_activities.cpp
<http://git.reviewboard.kde.org/r/105222/#comment12234>

    This looks like a very ugly workaround, to me.
    
    Does it[1].uri() return a QUrl, or a QString?
    If a QString, then the problem is passing it to the QUrl constructor. QUrl in Qt4 is broken in that respect. (Fixed in Qt5).
    Use KUrl instead, or use QUrl::fromEncoded(it[1].uri().toLatin1()). I'd prefer KUrl though, to keep this code readable and make it a one-char fix ;)


- David Faure


On June 18, 2012, 6:09 a.m., Xuetian Weng wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105222/
> -----------------------------------------------------------
> 
> (Updated June 18, 2012, 6:09 a.m.)
> 
> 
> Review request for KDE Runtime and Ivan Čukić.
> 
> 
> Description
> -------
> 
> The query result for the Uri is already encoded to PercentEncoding, thus url.url() will not get the correct url.
> 
> Not sure this should always handled in this case, or soprano itself (uri()) should be fixed.
> 
> 
> Diffs
> -----
> 
>   workspace/kio/kio_activities.cpp 8ef1f7b 
> 
> Diff: http://git.reviewboard.kde.org/r/105222/diff/
> 
> 
> Testing
> -------
> 
> Works here for utf8 file name.
> 
> 
> Thanks,
> 
> Xuetian Weng
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20120712/e7138850/attachment.htm>


More information about the kde-core-devel mailing list