Comment 4 for bug 1857824

Revision history for this message
Alex A. D. (hinell) wrote :

Wow. I'm experiencing the same problem.

I run the following test case:

$ tee index.py <<eol
#! /usr/bin/env python3
example_string = \
"""\
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Example title</title>
  </head>
  <body>
    <p>Example body</p>
  </body>
</html>
"""
print('Hello, world!')
eol

$ kmimetypefinder5 index.py # => application/xhtml+xml

The last command outputs wrong type. Seriously, it's a bug. I've the same problem in a separate bugreport. Checkout: https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1890716