Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.4.1
-
None
-
416438c2f35dc774e4c52a705c5a7098a69647fc
Description
#include <QBuffer> #include <QMimeDatabase> #include <QDebug> int main(int argc, char *argv[]) { static const char data[] = "diff\t"; QByteArray d(data); QBuffer buff(&d); QMimeDatabase mdb; qDebug() << mdb.mimeTypeForFileNameAndData(QLatin1String("blah"), &buff).name(); return 0; }
is supposed to output text/x-patch, but detects as plain/text.
Attachments
For Gerrit Dashboard: QTBUG-44884 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
108113,2 | QMimeDatabase: Fix magic rules with \t | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |