]> granicus.if.org Git - file/commitdiff
need trailing spaces in places :-)
authorChristos Zoulas <christos@zoulas.com>
Fri, 17 Mar 2017 22:20:22 +0000 (22:20 +0000)
committerChristos Zoulas <christos@zoulas.com>
Fri, 17 Mar 2017 22:20:22 +0000 (22:20 +0000)
magic/Magdir/archive
magic/Magdir/audio
magic/Magdir/diff
magic/Magdir/filesystems
magic/Magdir/icc
magic/Magdir/mime
magic/Magdir/msvc
magic/Magdir/msx
magic/Magdir/printer
magic/Magdir/scientific
magic/Magdir/windows

index 8f159bfa33ffc0727d4ba674839545fa63beaa35..755e6ed0d2fc92f8cae2d998804064673a2d3700 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: archive,v 1.105 2017/03/17 21:35:28 christos Exp $
+# $File: archive,v 1.106 2017/03/17 22:20:22 christos Exp $
 # archive:  file(1) magic for archive formats (see also "msdos" for self-
 #           extracting compressed archives)
 #
 # check header level 0 1 2 3
 >>>20  ubyte           <4
 # check 2nd, 3th and 4th character of method id
->>>>3  regex           \^(lh[0-9a-ex]|lz[s2-8]|pm[012]|pc1)            \b
+>>>>3  regex           \^(lh[0-9a-ex]|lz[s2-8]|pm[012]|pc1)            \b\040
 !:mime application/x-lzh-compressed
 # creator type "LHA "
 !:apple        ????LHA
 # display archive type name like "LHa/LZS archive data" or "LArc archive"
->>>>>2 string          -lz             \b
+>>>>>2 string          -lz             \b\040
 !:ext  lzs
 # already known  -lzs- -lz4- -lz5- with old names
 >>>>>>2        string  -lzs            LHa/LZS archive data
 # LHice archiver use ".ICE" as name extension instead usual one ".lzh"
 # FOOBAR archiver use ".foo" as name extension instead usual one
 # "Florain Orjanov's and Olga Bachetska's ARchiver" not found at the moment
->>>>>>>2       string  -lh1            \b
+>>>>>>>2       string  -lh1            \b\040
 !:ext lha/lzh/ice
 >>>>>>3        regex           \^lh[23d]       LHa 2.x? archive data
 >>>>>>3        regex           \^lh[7]         LHa (2.x)/LHark archive data
 >>>>>>3        regex           \^lh[456]       LHa (2.x) archive data
->>>>>>>2       string  -lh5            \b
+>>>>>>>2       string  -lh5            \b\040
 # https://en.wikipedia.org/wiki/BIOS
 # Some mainboard BIOS like Award use LHa compression. So archives with unusal extension are found like
 # bios.rom , kd7_v14.bin, 1010.004, ...
 # UNLHA32 2.67a
 >>>>>>2        string          -lhx            LHa (UNLHA32) archive
 # lha archives with standard file name extensions ".lha" ".lzh"
->>>>>>3        regex           !\^(lh1|lh5)    \b
+>>>>>>3        regex           !\^(lh1|lh5)    \b\040
 !:ext lha/lzh
 # this should not happen if all -lh variants are described
 >>>>>>2        default         x               LHa (unknown) archive
index 8e5cd6dcf14dd0c19310762acf86ea9c09925ca4..2f1bca2a43c74555e2e95a0169702dd5b598b39a 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: audio,v 1.78 2017/03/17 21:35:28 christos Exp $
+# $File: audio,v 1.79 2017/03/17 22:20:22 christos Exp $
 # audio:  file(1) magic for sound formats (see also "iff")
 #
 # Jan Nicolai Langfeldt (janl@ifi.uio.no), Dan Quinlan (quinlan@yggdrasil.com),
 
 # From Fabio R. Schmidlin <frs@pop.com.br>
 # VGM music file
-0      string          Vgm\
+0      string          Vgm\040
 >9     ubyte           >0      VGM Video Game Music dump v
 >>9    ubyte/16        >0      \b%d
 >>9    ubyte&0x0F      x       \b%d
index 866c7d8593b7629b3b6005e1eae75604ad971b6c..cd530d345e320342c980d1c1eee62843b9a1141d 100644 (file)
@@ -1,15 +1,15 @@
 
 #------------------------------------------------------------------------------
-# $File: diff,v 1.15 2017/03/17 21:35:28 christos Exp $
+# $File: diff,v 1.16 2017/03/17 22:20:22 christos Exp $
 # diff:  file(1) magic for diff(1) output
 #
-0      search/1        diff\           diff output text
+0      search/1        diff\040        diff output text
 !:mime text/x-diff
-0      search/1        ***\            diff output text
+0      search/1        ***\040         diff output text
 !:mime text/x-diff
-0      search/1        Only\ in\       diff output text
+0      search/1        Only\040in\040  diff output text
 !:mime text/x-diff
-0      search/1        Common\ subdirectories:\        diff output text
+0      search/1        Common\040subdirectories:\040   diff output text
 !:mime text/x-diff
 
 0      search/1        Index:          RCS/CVS diff output text
@@ -20,9 +20,9 @@
 
 
 # unified diff
-0      search/4096     ---\
+0      search/4096     ---\040
 >&0    search/1024 \n
->>&0   search/1 +++\
+>>&0   search/1 +++\040
 >>>&0  search/1024 \n
 >>>>&0 search/1 @@     unified diff output text
 !:mime text/x-diff
index 85fd3d74e9e0a12b472569b036392b721c8c2395..f7694e4fb35aa9fa1659292bf41be44abeeb0c22 100644 (file)
@@ -1,5 +1,5 @@
 #------------------------------------------------------------------------------
-# $File: filesystems,v 1.118 2017/03/17 21:35:28 christos Exp $
+# $File: filesystems,v 1.119 2017/03/17 22:20:22 christos Exp $
 # filesystems:  file(1) magic for different filesystems
 #
 0      name    partid
 # Ranish Partition Manager http://www.ranish.com/part/
 >387   search/4        \0\ Error!\r
 >>378  search/7        Virus!
->>>397 search/4        Booting\
+>>>397 search/4        Booting\040
 >>>>408        search/4        HD1/\0                          \b, Ranish MBR (
 >>>>>416       string  Writing\ changes...             \b2.37
 >>>>>>438      ubyte           x                       \b,0x%x dots
 # SYSLINUX MBR moved
 # http://www.acronis.de/
 >362   string  MBR\ Error\ \0\r
->>376  string  ress\ any\ key\ to\
+>>376  string  ress\ any\ key\ to\040
 >>>392 string  boot\ from\ floppy...\0                 \b, Acronis MBR
 # added by Joerg Jenderek
 # http://www.visopsys.org/
 # http://www.acronis.de/
 #FAT label=ACRONIS\ SZ
 #OEM-ID=BOOTWIZ0
->442   string  Non-system\ disk,\
+>442   string  Non-system\ disk,\040
 >>459  string  press\ any\ key...\x7\0         \b, Acronis Startup Recovery Loader
 # updated by Joerg Jenderek at Nov 2012, Sep 2013
 # DOS names like F11.SYS or BOOTWIZ.SYS are 8 right space padded bytes+3 bytes
 >>>447 ubyte   x               \b
 >>>477 use     DOS-filename
 #
->185   string  FDBOOT\ Version\
->>204  string  \rNo\ Systemdisk.\
+>185   string  FDBOOT\ Version\040
+>>204  string  \rNo\ Systemdisk.\040
 >>>220 string  Booting\ from\ harddisk.\n\r
 >>>245 string  Cannot\ load\ from\ harddisk.\n\r
->>>>273 string Insert\ Systemdisk\
+>>>>273 string Insert\ Systemdisk\040
 >>>>>291 string and\ press\ any\ key.\n\r              \b, FDBOOT harddisk Bootloader
 >>>>>>200 string       >\0                             \b, version %-3s
 >242   string  Bootsector\ from\ C.H.\ Hochst\204
 >>>>>>>>>>>>>>0x77     string  >\0                     "%-s"
 >214   string  Please\ try\ to\ install\ FreeDOS\      \b, DOS Emulator boot message display
 #>>244 string  from\ dosemu-freedos-*-bin.tgz\r
-#>>>170        string  Sorry,\ could\ not\ load\ an\
+#>>>170        string  Sorry,\ could\ not\ load\ an\040
 #>>>>195       string  operating\ system.\r\n
 #
->103   string  This\ is\ not\ a\ bootable\ disk.\
->>132  string  Please\ insert\ a\ bootable\
+>103   string  This\ is\ not\ a\ bootable\ disk.\040
+>>132  string  Please\ insert\ a\ bootable\040
 >>>157 string  floppy\ and\r\n
 >>>>169        string  press\ any\ key\ to\ try\ again...\r    \b, FREE-DOS message display
 #
 >>>470 string  OS2BOOT\ \ \ \                          \b, IBM OS/2 Warp Bootloader
 >112           string  This\ disk\ is\ not\ bootable\r
 >>142          string  If\ you\ wish\ to\ make\ it\ bootable
->>>176         string  run\ the\ DOS\ program\ SYS\
+>>>176         string  run\ the\ DOS\ program\ SYS\040
 >>>200         string  after\ the\r
 >>>>216                string  system\ has\ been\ loaded\r\n
->>>>>242       string  Please\ insert\ a\ DOS\ diskette\
->>>>>271       string  into\r\n\ the\ drive\ and\
+>>>>>242       string  Please\ insert\ a\ DOS\ diskette\040
+>>>>>271       string  into\r\n\ the\ drive\ and\040
 >>>>>>292      string  strike\ any\ key...\0           \b, IBM OS/2 Warp message display
 # XP
 >430   string  NTLDR\ is\ missing\xFF\r\n
 >>>>>>425      string          >\                      \b.%-.3s
 #
 
-#>3    string  NTFS\ \ \ \
->389   string  Fehler\ beim\ Lesen\
+#>3    string  NTFS\ \ \ \040
+>389   string  Fehler\ beim\ Lesen\040
 >>407  string  des\ Datentr\204gers
 >>>426 string  NTLDR\ fehlt
 >>>>440        string  NTLDR\ ist\ komprimiert
 >>>>>464 string        Neustart\ mit\ Strg+Alt+Entf\r          \b, Microsoft Windows XP Bootloader NTFS (german)
-#>3    string  NTFS\ \ \ \
+#>3    string  NTFS\ \ \ \040
 >313   string  A\ disk\ read\ error\ occurred.\r
->>345  string  A\ kernel\ file\ is\ missing\
+>>345  string  A\ kernel\ file\ is\ missing\040
 >>>370 string  from\ the\ disk.\r
 >>>>484        string  NTLDR\ is\ compressed
->>>>>429 string        Insert\ a\ system\ diskette\
+>>>>>429 string        Insert\ a\ system\ diskette\040
 >>>>>>454 string and\ restart\r\nthe\ system.\r                \b, Microsoft Windows XP Bootloader NTFS
 # DOS loader variants different languages,offsets
 >472   ubyte&0xDF      >0
 >>389  string  Invalid\ system\ disk\xFF\r\n
 >>>411 string  Disk\ I/O\ error
->>>>428        string  Replace\ the\ disk,\ and\
+>>>>428        string  Replace\ the\ disk,\ and\040
 >>>>>455 string        press\ any\ key                         \b, Microsoft Windows 98 Bootloader
 #IO.SYS
 >>>>>>472      ubyte&0xDF      >0
 #
 >>390  string  Invalid\ system\ disk\xFF\r\n
 >>>412 string  Disk\ I/O\ error\xFF\r\n
->>>>429        string  Replace\ the\ disk,\ and\
+>>>>429        string  Replace\ the\ disk,\ and\040
 >>>>>451 string        then\ press\ any\ key\r                 \b, Microsoft Windows 98 Bootloader
 >>388  string  Ungueltiges\ System\ \xFF\r\n
 >>>410 string  E/A-Fehler\ \ \ \ \xFF\r\n
->>>>427        string  Datentraeger\ wechseln\ und\
+>>>>427        string  Datentraeger\ wechseln\ und\040
 >>>>>453 string        Taste\ druecken\r                       \b, Microsoft Windows 95/98/ME Bootloader (german)
 #WINBOOT.SYS only not spaces (0xDF)
 >>>>>>497      ubyte&0xDF      >0
 #
 >>390  string  Ungueltiges\ System\ \xFF\r\n
 >>>412 string  E/A-Fehler\ \ \ \ \xFF\r\n
->>>>429        string  Datentraeger\ wechseln\ und\
+>>>>429        string  Datentraeger\ wechseln\ und\040
 >>>>>455 string        Taste\ druecken\r                       \b, Microsoft Windows 95/98/ME Bootloader (German)
 #WINBOOT.SYS only not spaces (0xDF)
 >>>>>>497      ubyte&0xDF      >0
 #
 >>389  string  Ungueltiges\ System\ \xFF\r\n
 >>>411 string  E/A-Fehler\ \ \ \ \xFF\r\n
->>>>428        string  Datentraeger\ wechseln\ und\
+>>>>428        string  Datentraeger\ wechseln\ und\040
 >>>>>454 string        Taste\ druecken\r                       \b, Microsoft Windows 95/98/ME Bootloader (GERMAN)
 # DOS names like IO.SYS,WINBOOT.SYS,MSDOS.SYS,WINBOOT.INI are 8 right space padded bytes+3 bytes
 >>>>>>472      string          x                       %-.2s
 >>>>>>>491     ubyte&0xDF      >0
 >>>>>>>>491    string          x                       \b.%-.3s
 >479   ubyte&0xDF      >0
->>416  string  Kein\ System\ oder\
+>>416  string  Kein\ System\ oder\040
 >>>433 string  Laufwerksfehler
 >>>>450        string  Wechseln\ und\ Taste\ dr\201cken        \b, Microsoft DOS Bootloader (german)
 #IO.SYS
 >>>>>>>498     ubyte&0xDF      >0
 >>>>>>>>498    string          x                       \b.%-.3s
 #
->376   search/41       Non-System\ disk\ or\
+>376   search/41       Non-System\ disk\ or\040
 >>395  search/41       disk\ error\r
->>>407 search/41       Replace\ and\
+>>>407 search/41       Replace\ and\040
 >>>>419        search/41       press\                          \b,
 >>>>419        search/41       strike\                         \b, old
 >>>>426        search/41       any\ key\ when\ ready\r         MS or PC-DOS bootloader
 >>>>>>>&7      ubyte&0xDF      >0                      \b.
 >>>>>>>>&-1    string          x                       \b%-.3s
 >441   string  Cannot\ load\ from\ harddisk.\n\r
->>469  string  Insert\ Systemdisk\
+>>469  string  Insert\ Systemdisk\040
 >>>487 string  and\ press\ any\ key.\n\r               \b, MS (2.11) DOS bootloader
 #>43   string  \224R-LOADER\ \ SYS                     =label
 >54    string  SYS
 >>>>>>>52      string          x                       \b.%-.3s
 #
 >70    string  IBMBIO\ \ COM
->>472  string  Cannot\ load\ DOS!\
+>>472  string  Cannot\ load\ DOS!\040
 >>>489 string  Any\ key\ to\ retry                     \b, DR-DOS Bootloader
->>471  string  Cannot\ load\ DOS\
+>>471  string  Cannot\ load\ DOS\040
 >>487  string  press\ key\ to\ retry                   \b, Open-DOS Bootloader
 #??
 >444   string  KERNEL\ \ SYS
 >>>>>>>>504    string          x                       \b%-.1s
 >>>>505                ubyte&0xDF      >0
 >>>>>505       string          x                       \b.%-.3s
->336   string  Error!\
+>336   string  Error!\040
 >>343  string  Hit\ a\ key\ to\ reboot.                \b, FREE-DOS Beta 0.9sr1 Bootloader
 >>>497         ubyte&0xDF      >0
 >>>>497                string          x                       \b %-.6s
 # http://partitionlogic.org.uk/
 # OEM-ID=Visopsys
 >478           ulelong 0
->>(1.b+326)    string  I/O\ Error\ reading\
+>>(1.b+326)    string  I/O\ Error\ reading\040
 >>>(1.b+344)   string  Visopsys\ loader\r
 >>>>(1.b+361)  string  Press\ any\ key\ to\ continue.\r        \b, Visopsys loader
 # http://alexfru.chat.ru/epm.html#bootprog
index 19741db9a0e198fb099b75172c8636be90cedce5..57a8fbcf0c623ff4136991eba1a8410ce0d560b3 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: icc,v 1.3 2017/03/17 21:35:28 christos Exp $
+# $File: icc,v 1.4 2017/03/17 22:20:22 christos Exp $
 # icc:  file(1) magic for International Color Consortium file formats
 
 #
@@ -89,7 +89,7 @@
 # eleven device classes
 >>>12  string          x               \b-%.4s device
 # skip 00001964h in hpf69000.icc or 0h in XRDC50Q.ICM or " ROT" in brmsl05f.icm
->>>52  string          >\
+>>>52  string          >\040
 # skip "none" model like in "Trinitron Compatible 9300K G2.2.icm"
 >>>>52 ubelong         !0x6e6f6e65
 # device manufacturer field like "HP  " "IBM " EPSO
index 5c782fc83cf7cadd93937d9512f1b62ab2c994e2..57b2dd557ba2292a9b0dd701ed2de79abbe67104 100644 (file)
@@ -1,9 +1,9 @@
 
 #------------------------------------------------------------------------------
-# $File: mime,v 1.7 2017/03/17 21:35:28 christos Exp $
+# $File: mime,v 1.8 2017/03/17 22:20:22 christos Exp $
 # mime:  file(1) magic for MIME encoded files
 #
-0      string/t                Content-Type:\
+0      string/t                Content-Type:\040
 >14    string          >\0             %s
 0      string/t                Content-Type:
 >13    string          >\0             %s
index 6d8ba012d48e9aee57265af8efdfd01216b15aa3..acc4faf693bd3c6d3155ec296519bdb7afcf13ab 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: msvc,v 1.7 2017/03/17 21:35:28 christos Exp $
+# $File: msvc,v 1.8 2017/03/17 22:20:22 christos Exp $
 # msvc:  file(1) magic for msvc
 # "H. Nanosecond" <aldomel@ix.netcom.com>
 # Microsoft visual C
@@ -33,7 +33,7 @@
 # Update: Joerg Jenderek
 # Note:        test only for Windows XP+SP3 x86 , 8.1 x64 arm and 10.1 x86
 #      info does only applies partly for older files like msvbvm50.pdb about year 2001
-0      string  Microsoft\ C/C++\
+0      string  Microsoft\ C/C++\040
 # "Microsoft Program DataBase" by TrID
 >24    search/14       \r\n\x1A        MSVC program database
 !:mime application/x-ms-pdb
index 3eb46baac135e4ceb903d7455e87ce189bde61a6..69df6416fe7c69eb1a90de066fb48892ab8fc560 100644 (file)
 4      uleshort        0x0900
 >0xF   byte            1
 >>0x14 byte            0
->>>0x1E        string          \ \ \
+>>>0x1E        string          \040\040\040
 >>>>0x23       byte    1
 >>>>>0x25      byte    0
 >>>>>>0x15     string  >\x30
index dcf95ded85dae69402c3b6b4864c4519e478bb75..98fc1dfaad42eb58325b64ba79e7f071e8aa0efd 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: printer,v 1.27 2017/03/17 21:35:28 christos Exp $
+# $File: printer,v 1.28 2017/03/17 22:20:22 christos Exp $
 # printer:  file(1) magic for printer-formatted files
 #
 
@@ -13,7 +13,7 @@
 >>>15  string          EPS             \b, type %s
 >>>15  string          Query           \b, type %s
 >>>15  string          ExitServer      \b, type %s
->>>15   search/1000            %%LanguageLevel:\
+>>>15   search/1000            %%LanguageLevel:\040
 >>>>&0 string          >\0             \b, Level %s
 # Some PCs have the annoying habit of adding a ^D as a document separator
 0      string          \004%!          PostScript document text
@@ -24,7 +24,7 @@
 >>>16  string          EPS             \b, type %s
 >>>16  string          Query           \b, type %s
 >>>16  string          ExitServer      \b, type %s
->>>16   search/1000            %%LanguageLevel:\
+>>>16   search/1000            %%LanguageLevel:\040
 >>>>&0 string          >\0             \b, Level %s
 0      string          \033%-12345X%!PS        PostScript document
 
index 1919e3eb6abc58ba6194829db4ae53af829c86ab..2e0cf49bee747a121b9138452174065634b244f2 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: scientific,v 1.11 2017/03/17 21:35:28 christos Exp $
+# $File: scientific,v 1.12 2017/03/17 22:20:22 christos Exp $
 # scientific:  file(1) magic for scientific formats
 #
 # From: Joe Krahn <krahn@niehs.nih.gov>
@@ -90,7 +90,7 @@
 # format DD-MMM-YY, e.g., 01-JAN-70, and the IDcode consists of numbers and
 # uppercase letters. However, examples have been seen without the date string,
 # e.g., the example on the chemime site.
-0      string  HEADER\ \ \ \
+0      string  HEADER\ \ \ \040
 >&0    regex/1l        \^.{40}
 >>&0   regex/1l        [0-9]{2}-[A-Z]{3}-[0-9]{2}\ {3}
 >>>&0  regex/1ls       [A-Z0-9]{4}.{14}$
index 7766ce8d56e83e533ba76bb18e14924c2803bb89..169d4f8d097672c152abd9b8370cc2ba5922cbc0 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: windows,v 1.15 2017/03/17 21:35:28 christos Exp $
+# $File: windows,v 1.16 2017/03/17 22:20:22 christos Exp $
 # windows:  file(1) magic for Microsoft Windows
 #
 # This file is mainly reserved for files where programs
 # display mime type and name of Windows help Content source
 0      name                            cnt-name
 # skip space at beginning
->0     string          \
+>0     string          \040
 # name without extension and greater character or name with hlp extension
 >>1    regex/c         \^([^\xd>]*|.*\.hlp)    MS Windows help file Content, based "%s"
 !:mime text/plain
 # Summary: Hyper terminal
 # Extension: .ht
 # Created by: unknown
-0      string          HyperTerminal\
+0      string          HyperTerminal\040
 >15    string          1.0\ --\ HyperTerminal\ data\ file      MS Windows HyperTerminal profile
 
-# http://ithreats.files.wordpress.com/2009/05/\
+# http://ithreats.files.wordpress.com/2009/05/\040
 # lnk_the_windows_shortcut_file_format.pdf
 # Summary: Windows shortcut
 # Extension: .lnk
 # Extension: .reg
 # Submitted by: Abel Cheung <abelcheung@gmail.com>
 0      string          REGEDIT4\r\n\r\n        Windows Registry text (Win95 or above)
-0      string          Windows\ Registry\ Editor\
+0      string          Windows\ Registry\ Editor\040
 >&0    string          Version\ 5.00\r\n\r\n   Windows Registry text (Win2K or above)
 
 # Windows *.INF *.INI files updated by Joerg Jenderek at Apr 2013