[Bug 1857824] Re: kmimetypefinder5 misidentifies mimetype of python files containing certain strings
Alex A. D.
1857824 at bugs.launchpad.net
Tue Sep 22 20:30:54 UTC 2020
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
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde-cli-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1857824
Title:
kmimetypefinder5 misidentifies mimetype of python files containing
certain strings
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde-cli-tools/+bug/1857824/+subscriptions
More information about the kubuntu-bugs
mailing list