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.