gnu 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #------------------------------------------------------------------------------
  2. # $File: gnu,v 1.13 2012/01/03 17:16:54 christos Exp $
  3. # gnu: file(1) magic for various GNU tools
  4. #
  5. # GNU nlsutils message catalog file format
  6. #
  7. # GNU message catalog (.mo and .gmo files)
  8. 0 string \336\22\4\225 GNU message catalog (little endian),
  9. >6 leshort x revision %d.
  10. >4 leshort >0 \b%d,
  11. >>8 lelong x %d messages,
  12. >>36 lelong x %d sysdep messages
  13. >4 leshort =0 \b%d,
  14. >>8 lelong x %d messages
  15. 0 string \225\4\22\336 GNU message catalog (big endian),
  16. >4 beshort x revision %d.
  17. >6 beshort >0 \b%d,
  18. >>8 belong x %d messages,
  19. >>36 belong x %d sysdep messages
  20. >6 beshort =0 \b%d,
  21. >>8 belong x %d messages
  22. # GnuPG
  23. # The format is very similar to pgp
  24. 0 string \001gpg GPG key trust database
  25. >4 byte x version %d
  26. # Note: magic.mime had 0x8501 for the next line instead of 0x8502
  27. 0 beshort 0x8502 GPG encrypted data
  28. !:mime text/PGP # encoding: data
  29. # This magic is not particularly good, as the keyrings don't have true
  30. # magic. Nevertheless, it covers many keyrings.
  31. 0 beshort 0x9901 GPG key public ring
  32. !:mime application/x-gnupg-keyring
  33. # Gnumeric spreadsheet
  34. # This entry is only semi-helpful, as Gnumeric compresses its files, so
  35. # they will ordinarily reported as "compressed", but at least -z helps
  36. 39 string =<gmr:Workbook Gnumeric spreadsheet
  37. # From: James Youngman <jay@gnu.org>
  38. # gnu find magic
  39. 0 string \0LOCATE GNU findutils locate database data
  40. >7 string >\0 \b, format %s
  41. >7 string 02 \b (frcode)
  42. # Files produced by GNU gettext
  43. 0 long 0xDE120495 GNU-format message catalog data
  44. 0 long 0x950412DE GNU-format message catalog data
  45. # gettext message catalogue
  46. 0 regex \^msgid\ GNU gettext message catalogue text
  47. !:mime text/x-po