bug-gnulib
[Top][All Lists]
Advanced

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

Re: mktime.m4 - working mktime fails if TIME_T_IS_SIGNED us undefined.


From: Paul Eggert
Subject: Re: mktime.m4 - working mktime fails if TIME_T_IS_SIGNED us undefined.
Date: Fri, 22 Sep 2017 08:50:44 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

On 09/22/2017 02:42 AM, Bruno Haible wrote:
When we make changes to time_t related
code, how to verify that it works with an unsigned time_t type?

The way I do it in tzdb <https://www.iana.org/time-zones/repository/tzdb-latest.tar.lz> is to replace the system time_t and its related low-level functions. It's a pain, and it does the job, and it's hard to explain. I vaguely recall trying simpler tricks something like what you describe, but don't remember why I abandoned that; perhaps I was trying for something that would work outside glibc.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]