D21317: Manipulate bytes instead of characters
Chinmoy Ranjan Pradhan
noreply at phabricator.kde.org
Tue May 21 14:07:26 BST 2019
chinmoyr created this revision.
chinmoyr added reviewers: bruns, dfaure.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
chinmoyr requested review of this revision.
REVISION SUMMARY
D21155 <https://phabricator.kde.org/D21155> trucates a QString. Since most Linux FS specify filename limits in bytes, convert the url to
QByteArray and then truncate.
As for truncating a UTF-8 sequence in middle, will it have any noticeable impact?
After truncating, the url loses any meaning it had initially. So IMO a few characters
at the end which were initially not a part of the url don't make any difference.
REPOSITORY
R241 KIO
BRANCH
link
REVISION DETAIL
https://phabricator.kde.org/D21317
AFFECTED FILES
src/core/copyjob.cpp
To: chinmoyr, bruns, dfaure
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190521/59047f76/attachment.html>
More information about the Kde-frameworks-devel
mailing list