From the downstream bug report: https://bugs.kde.org/show_bug.cgi?id=375956 Steps to reproduce: # from the shared-mime-info git repo: cd tests cp text.pdf AİİA.pdf xdg-mime query filetype AİİA.pdf Expected output: application/pdf Actual output: text/x-pascal This happens with shared-mime-info 1.7
This is an implementation problem, not one in the database. It's probably a bug in xdg-mime or whatever underlying implementation it's using.
*** Bug 99673 has been marked as a duplicate of this bug. ***
*** Bug 99674 has been marked as a duplicate of this bug. ***
Should I reassign to the xdgmime product? I'm also CC'ing David, since the same problem can be reproduced with QMimeDatabase.
Reassigning to xdgmime.
(In reply to Elvis Angelaccio from comment #5) > Reassigning to xdgmime. Wrong xdg-mime. The one you're running is a shell script that runs whatever. The one this was assigned to is a reference implementation of the mime spec. It's the shell script that's likely broken.
Not a xdg-utils bug either, $ kmimetypefinder5 AİİA.pdf text/x-pascal xdg-mime relies in kmimetypefinder(5), reopening kde bug
fwiw, gio seems to get it right, $ gio info AİİA.pdf | grep content-type standard::content-type: application/pdf
(In reply to Bastien Nocera from comment #6) > (In reply to Elvis Angelaccio from comment #5) > > Reassigning to xdgmime. > > Wrong xdg-mime. The one you're running is a shell script that runs whatever. > The one this was assigned to is a reference implementation of the mime spec. > It's the shell script that's likely broken. Turns out xdg-mime from xdg-utils relies on kmimetyefinder5 (thanks Rex), which is just a tiny wrapper over QMimeDatabase [1]. So this really looks like a bug in the Qt implementation. [1]: https://cgit.kde.org/kde-cli-tools.git/tree/kmimetypefinder/kmimetypefinder.cpp
For the record: fixed in Qt -- https://bugreports.qt.io/browse/QTBUG-58822
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.