Review Request 123965: Encode KBookmark URL to fix compatibility with KDE4 applications

David Faure faure at kde.org
Sun Jun 14 23:21:46 BST 2015


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

Ship it!


I have no problems with using FullyEncoded in the file, but this is still surprising, Qt5's toString should be a valid URL, parsable by KDE4's KUrl, I would have thought. Oh well.

- David Faure


On May 31, 2015, 1:28 p.m., Andrey Bondrov wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/123965/
> -----------------------------------------------------------
> 
> (Updated May 31, 2015, 1:28 p.m.)
> 
> 
> Review request for Dolphin, kdelibs, David Faure, and Hrvoje Senjan.
> 
> 
> Repository: kbookmarks
> 
> 
> Description
> -------
> 
> We need to encode KBookmark URL to fix compatibility with KDE4 applications.
> 
> For example, KDE4 stores "~/????????" ("Downloads" in Russian) as
> 
> bookmark href="file:///home/vuohi/%D0%97%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B8/"
> 
> while KF5 stores "~/????????" as
> 
> bookmark href="file:///home/vuohi/????????/"
> 
> When the bookmark is created with KF5, KDE4 applications cannot open it.
> 
> P.S. Looks like this editor cannot display non-latin characters, it replaced actual string with questions.
> 
> 
> Diffs
> -----
> 
>   src/kbookmark.cpp 98ddc99 
> 
> Diff: https://git.reviewboard.kde.org/r/123965/diff/
> 
> 
> Testing
> -------
> 
> Only quick testing is done. I deleted user-places.xbel, added bookmark with kwrite (KF5 version), checked if it's properly stored in new user-places.xbel and if Dolphin (KDE4 build) can open it from Places panel. Seems to work properly.
> 
> 
> Thanks,
> 
> Andrey Bondrov
> 
>

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


More information about the kde-core-devel mailing list