[tz] iana build failures on Windows

Paul Eggert eggert at cs.ucla.edu
Thu Apr 22 20:30:17 UTC 2021

On 4/22/21 4:44 AM, Manuela Friedrich wrote:
> +               printf("TRACING: only_ok = %d | delta(&tm,&lotm) = %d | t - lot = %d \n", only_ok, delta(&tm, &lotm), t - lot);

It'd be helpful to print the contents of t, lot, tm's components, and 
lotm's components too. Also, delta returns intmax_t (so use %jd to print 
it) and t - lot is of type time_t (so use the appropriate modifier for 
time_t too).

The output you've sent so far indicates that the binary search isn't 
working right, and is constantly returning the smallest possible value 
even when that isn't the right value. So the extra debugging output 
should help us track that down.

More information about the tz mailing list