[tz] iana build failures on Windows
eggert at cs.ucla.edu
Wed May 5 18:04:56 UTC 2021
On 5/5/21 6:23 AM, Manuela Friedrich wrote:
> the new tracing seems to reveal a diff in the abbreviations.
Yes, that seems to be the problem. MS-Windows's struct tm does not have
a tm_zone member; localtime merely puts time zone abbreviations into a
global variable tzname, a la POSIX. On platforms lacking tm_zone,
zdump's recently-changed code for remembering time zone abbreviations
attempted to optimize localtime calls too aggressively and got the wrong
abbreviation out of tzname.
I installed the attached patch into the development repository. It fixes
things on Ubuntu when I compile with -DNO_TM_ZONE, which is how I
reproduced the bug (NO_TM_ZONE tells zdump to pretend there's no tm_zone
member). Please give it a try.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5506 bytes
Desc: not available
More information about the tz