Skip to content

Commit a94f376

Browse files
authored
Merge pull request #130 from davidanthoff/magic-bytes
Add some magic bytes
2 parents 45711c9 + acb1fd9 commit a94f376

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/registry.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ end
1717
add_format(format"RData", detect_rdata, [".rda", ".RData", ".rdata"], [:RData, LOAD])
1818

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

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

0 commit comments

Comments
 (0)