Skip to content

Commit

Permalink
Merge pull request #130 from davidanthoff/magic-bytes
Browse files Browse the repository at this point in the history
Add some magic bytes
  • Loading branch information
SimonDanisch authored Jun 11, 2017
2 parents 45711c9 + acb1fd9 commit a94f376
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/registry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ end
add_format(format"RData", detect_rdata, [".rda", ".RData", ".rdata"], [:RData, LOAD])

add_format(format"CSV", (), [".csv"], [:CSVFiles])
add_format(format"Feather", (), [".feather"], [:FeatherFiles])
add_format(format"Feather", "FEA1", [".feather"], [:FeatherFiles])
add_format(format"Excel", (), [".xls", ".xlsx"], [:ExcelFiles, LOAD])
add_format(format"Stata", (), [".dta"], [:StatFiles, LOAD])
add_format(format"SPSS", (), [".sav", ".por"], [:StatFiles, LOAD])
add_format(format"SAS", (), [".sas7bdat"], [:StatFiles, LOAD])
add_format(format"SPSS", "\$FL2", [".sav"], [:StatFiles, LOAD])
add_format(format"SAS", UInt8[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0xc2, 0xea, 0x81, 0x60,0xb3, 0x14, 0x11,
0xcf, 0xbd, 0x92, 0x08, 0x00, 0x09, 0xc7, 0x31, 0x8c, 0x18, 0x1f,
0x10, 0x11], [".sas7bdat"], [:StatFiles, LOAD])

# Image formats
add_format(format"PBMBinary", b"P4", ".pbm", [:ImageMagick])
Expand Down

0 comments on commit a94f376

Please sign in to comment.