Public bug reported:

`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.

** Affects: xdg-utils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1718096

Title:
  Wrong result from xdg-mime query filetype

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1718096/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to