NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tzfile



On Wed, 21 Jul 2021, Emmanuel Dreyfus wrote:

Copying a tzfile from Linux on NetBSD works around the problem in GNUstep,
and comparing the files, I notice a NetBSD weirdness as shown in
/usr/share/zoneinfo/Europe/Paris hexdump below:

00000000  54 5a 69 66 32 00 00 00  00 00 00 00 00 00 00 00  |TZif2...........|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 01  00 00 00 01 00 00 00 00  |................|
00000030  00 00 00 54 5a 69 66 32  00 00 00 00 00 00 00 00  |...TZif2........|
00000040  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000050  00 00 00 00 00 00 65 00  00 00 07 00 00 00 1f ff  |......e.........|

Why is the header duplicated with a different content at offset 0x33?


In fact, all the files in /usr/share/zoneinfo in both -HEAD and
9.2-RELEASE have that. Seems to have something to do with the
switch to "slim" TZ files. The files look OK if they are created
with ``zic -b fat ...''.

Will look into this more after I get back home.

-RVP


Home | Main Index | Thread Index | Old Index