Wrong result from xdg-mime query filetype
Bug #1718096 reported by
Hibou57 (Yannick Duchêne)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-utils (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
`man xgd-mime` says:
> query filetype FILE: Returns the file type of FILE in the form of a MIME type.
However, it actually returns MIME type with MIME encoding:
$ xdg-mime query filetype <filename>
> text/x-python; charset=utf-8
After the man page, it should return something like `file --mime-type`:
$ file -b --mime-type <filename>
> text/x-python
But instead, it returns something like `file --mime`:
$ file -b --mime <filename>
> text/x-python; charset=utf-8
Either the man page is wrong or `wdg-mime` is wrong.
To post a comment you must log in.
Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https:/ /wiki.ubuntu. com/Bugs/ Upstream/ Freedesktop. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.