[File] Patch to fix timezone file to correctly process TZif files

Guy Harris gharris at sonic.net
Sat Dec 26 05:17:42 UTC 2020


Attached is a patch to fix a couple of errors in the current magic/Magdir/timezone file:

1) There's a typo - the line ">20    belong  1       \b, 1 std time flag" should be ">24    belong  1       \b, 1 std time flag", as the count of standard time flags is at an offset of 24 bytes; the previous and subsequent lines have the correct offset.

2) The field at an offset of 36 bytes is a count of local time types, not a count of abbreviation characters; the count of abbreviation characters is at an offset of 40 bytes.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.txt
URL: <https://mailman.astron.com/pipermail/file/attachments/20201225/3f71e404/attachment.txt>


More information about the File mailing list