Summary: | PDF file with non-ASCII filename detected as Pascal source code | ||
---|---|---|---|
Product: | Portland | Reporter: | Elvis Angelaccio <elvis.angelaccio> |
Component: | xdg-utils | Assignee: | Portland Bugs <portland-bugs> |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | faure |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Elvis Angelaccio
2017-02-04 10:39:00 UTC
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.