Package: file Version: 4.21-1 Severity: normal Tags: patch
I recently began putting SVG file son my Apache web server, and noticed the mime types being served were incorrect. Investigation into this found that the problem was that my SVG files were being reported as XML. I figured I'd just add the required lines to detect it, but I saw they were already there (thanks to bug #417331, no doubt). The problem is that they are not in the order specified in his patch - in my file the XML magic is above the SVG magic, meaning that it will not ever be detected. Moving the lines above the XML solved this, and when I found bug #417331, this is how they were submitted, so I think what I've done is correct. The magic.mime file however only looks for a doctype, which is insufficent as this is only an optional tag, (and indeed, apparently is depreciated by the SVG committe according to some sources.) Placing the rules from the basic magic file detects it correctly. When sending this bug I said I've attached a patch, but really it's not required - it's just moving existing rules above one another. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (900, 'testing'), (600, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core) Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages file depends on: ii libc6 2.5-9+b1 GNU C Library: Shared libraries ii libmagic1 4.21-1 File type determination library us file recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]