Adapt to Qt 5.6 changes and prevent nullbytes in QStrings.
Review Request #123479 - Created April 23, 2015 and submitted
|dfaure, mutz, vkrause|
The len in inotify_event includes nulls of the name. To prevent them from being included in the QString/QByteArray we must filter them manually with a recent Qt 5 dev build now. See also: https://codereview.qt-project.org/#/c/106473/ REVIEW: 123479
I used the test and looked at the output and also ran it against a patched qtbase with this:
|Why this manual loop instead of strlen()? Does that mean that null characters in the middle are valid? Or, more ...||Alex Richardson|
How are kf5 releases handled btw? Do I need to push this into some branch? There are none in kcoreaddons. This patch here should probably be put into a patch release (if we do this for kf5).