Package: file Version: 5.11-2 Severity: wishlist Tags: patch Dear Maintainer,
file(1) currently detects AutoCAD DXF files as plain text. The following magic works for me: ---- snip ----- # AutoCAD DXF format, see for example # http://images.autodesk.com/adsk/files/autocad_2012_pdf_dxf-reference_enu.pdf # # The \000? below is a hack to prevent file(1) from adding a ", " to the end 0 regex 0[\ \r\n\t]+\000?SECTION[\ \r\n\t]+2[\ \r\n\t]+HEADER \bAutoCAD Drawing Exchange Format >&1 search/8192 AC1006 \b, R10 >&1 search/8192 AC1009 \b, R11/R12 >&1 search/8192 AC1012 \b, R13 >&1 search/8192 AC1014 \b, R14 >&1 search/8192 AC1015 \b, version 2000 >&1 search/8192 AC1018 \b, version 2004 >&1 search/8192 AC1021 \b, version 2007 >&1 search/8192 AC1024 \b, version 2010 !:mime application/x-dxf ---- snap ----- I was not totally sure about the MIME type, but application/x-dxf seems to be used widely. Thanks, Roland -- System Information: Debian Release: 7.0 APT prefers testing-proposed-updates APT policy: (500, 'testing-proposed-updates'), (500, 'testing'), (1, 'experimental'), (1, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages file depends on: ii libc6 2.13-38 ii libmagic1 5.11-2 ii zlib1g 1:1.2.7.dfsg-13 file recommends no packages. file suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

