Re: Qt 5.6 behavior change with QByteArray(str, size) and QFile::encodeName()

2015-11-08 Thread Matthew Dawson
On November 7, 2015 08:07:11 PM David Faure wrote: > KTar's unittests detected a behavior change in Qt. > Thiago, is it intentional, or should it be fixed in Qt ? > > KTar does > > QString name = QFile::decodeName(QByteArray(buffer, 100)); > > where buffer is e.g. "filename\0\0\0\0\0\0[...]" >

Qt 5.6 behavior change with QByteArray(str, size) and QFile::encodeName()

2015-11-07 Thread David Faure
KTar's unittests detected a behavior change in Qt. Thiago, is it intentional, or should it be fixed in Qt ? KTar does QString name = QFile::decodeName(QByteArray(buffer, 100)); where buffer is e.g. "filename\0\0\0\0\0\0[...]" With Qt < 5.6 this would lead to name being equal to "filename". Wit