Package: shared-mime-info Version: 0.90-1 Severity: normal Tags: patch Hi,
patch 061_tex-matlab.patch adds and changes some of the magic's for text/x-tex. The problem is that the string values added contain a literal backslash ('\'), which must be escaped in order to be recognized as such (and not as \d, \c and \s characters). This causes files with no known extension containing the string "ection" to be recognized as tex files (instead of possibly something else, if not octet-stream). Attached there is a fixed version of patch 061_tex-matlab.patch. Thanks, -- Pino -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (850, 'testing'), (800, 'unstable'), (750, 'experimental'), (750, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages shared-mime-info depends on: ii libc6 2.13-21 ii libglib2.0-0 2.28.6-1 ii libxml2 2.7.8.dfsg-4 shared-mime-info recommends no packages. shared-mime-info suggests no packages. -- no debconf information
Index: shared-mime-info-0.90/freedesktop.org.xml.in =================================================================== --- shared-mime-info-0.90.orig/freedesktop.org.xml.in 2011-09-26 13:15:23.000000000 +0200 +++ shared-mime-info-0.90/freedesktop.org.xml.in 2011-09-26 13:20:03.000000000 +0200 @@ -5033,7 +5033,13 @@ command to generate the output files. <match type="string" value="%" offset="0"/> </magic> <magic priority="50"> - <match type="string" value="documentclass" offset="1"/> + <match value="\\documentclass" type="string" offset="0:100"/> + </magic> + <magic priority="50"> + <match value="\\chapter" type="string" offset="0:100"/> + </magic> + <magic priority="50"> + <match value="\\section" type="string" offset="0:100"/> </magic> </mime-type> <mime-type type="text/x-texinfo">