D21155: Truncate long filname before creating a link
David Faure
noreply at phabricator.kde.org
Tue May 14 16:15:44 BST 2019
dfaure added a comment.
The first issue is solved by the use of NAME_MAX (the code doesn't actually hardcode 255), but indeed those are bytes, so this has to use QFile::encodeName() (to get to QByteArray), truncate, then QFile::decodeName() (to get back to QString). But what if this cuts in the middle of a utf-8 sequence....
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D21155
To: chinmoyr, dfaure, ngraham
Cc: bruns, kde-frameworks-devel, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190514/798b1565/attachment.html>
More information about the Kde-frameworks-devel
mailing list