I checked new magic for linguist type in current git and saw no problem. The new magic alone does not prevent video/mp2t files to match linguist type. But it does not interfere with my patch either. Together with my patch video/mp2t still are recognized reliably.
I did not check if true application/x-linguist files are affected by my patch, because I have none. But I am pretty sure that this is not the case, because the magic in my patch is quite restrictive. And to verify this I pulled the source of shared-mime-info (including all its test-files) into an Ubuntu Live-CD and then I did:
I checked new magic for linguist type in current git and saw no problem. The new magic alone does not prevent video/mp2t files to match linguist type. But it does not interfere with my patch either. Together with my patch video/mp2t still are recognized reliably.
I did not check if true application/ x-linguist files are affected by my patch, because I have none. But I am pretty sure that this is not the case, because the magic in my patch is quite restrictive. And to verify this I pulled the source of shared-mime-info (including all its test-files) into an Ubuntu Live-CD and then I did:
$ sudo find /bin /boot /etc /home /lib /opt /root /sbin /tmp /usr /var \
-xdev -type f -exec mimetype \{\} \; | grep video/mp2t
This showed no false positives.
For a small video/mp2t test file see https:/ /bugs.launchpad .net/ubuntu/ +source/ shared- mime-info/ +bug/502642/ comments/ 7.