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