View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000539 | file | General | public | 2024-07-08 16:07 | 2024-07-08 22:05 |
Reporter | manfredsc | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Summary | 0000539: New IANA entry for GRIB | ||||
Description | There is now an official entry for GRIB at IANA: https://www.iana.org/assignments/media-types/application/grib Somewhat in contradiction to the existing entry (see 0000404), it was decided to add a single "grib" type and use the parameter "edition" to differentiate between the different GRIB versions: application/grib;edition=1 application/grib;edition=2 Therefore the GRIB entries should probably be changed to: # https://en.wikipedia.org/wiki/GRIB, https://www.iana.org/assignments/media-types/application/grib 0 string GRIB >7 byte =1 Gridded binary (GRIB) version 1 !:mime application/grib;edition=1 !:ext grb/grib >7 byte =2 Gridded binary (GRIB) version 2 !:mime application/grib;edition=2 !:ext grb2/grib2 As this mime entry is very fresh, there will be "application/x-grib" and "application/x-grib2" mime types floating around for a long time. But putting it straight now is probably the right decision. | ||||
Tags | No tags attached. | ||||
|
Hmm, I just tried it by patching /etc/magic, parameters seem not to be supported. So I guess mime should simply be !:mime application/grib for both cases. |
|
And versions are called editions for GRIB, so one could add the string accordingly: # https://en.wikipedia.org/wiki/GRIB, https://www.iana.org/assignments/media-types/application/grib 0 string GRIB >7 byte =1 Gridded binary (GRIB) Edition 1 !:mime application/grib !:ext grb/grib >7 byte =2 Gridded binary (GRIB) Edition 2 !:mime application/grib !:ext grb2/grib2 |