Proposed magic number patch
Guy Harris
guy at netapp.com
Wed Oct 8 22:17:08 UTC 1997
> They want to get lines of the following form:
>
> 0 string \x14\x1aTZ compiled time zone information
> 0 string \x89TZ\x0d\0x0a\x1a\x0a compiled time zone information
I already sent them lines of the following form:
#------------------------------------------------------------------------------
# timezone: file(1) magic for timezone data
#
# from Daniel Quinlan (quinlan at yggdrasil.com)
# this should work on Linux, SunOS, and maybe others
0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0 timezone data
0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\2\0 timezone data
0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0 timezone data
0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0 timezone data
0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\5\0 timezone data
0 string \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0 timezone data
which I snarfed from, I think, a Linux distribution (Debian?).
No guarantees that it's the best possible choice, although it does
manage to get the right answer on a SPARC/Solaris 2.5.1 system (on the
time zone data files that come with Solaris 2.5.1), except for the
"Eire" compiled file.
More information about the tz
mailing list