[tz] [PROPOSED 6/7] Add missing zdump.o dependency

2025-01-08 Thread Paul Eggert via tz
* Makefile (zdump.o): Depend on private.h. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e00b0f32..f1ce7abb 100644 --- a/Makefile +++ b/Makefile @@ -1360,8 +1360,8 @@ date.o: private.h difftime.o:private.h localtime.o

[tz] v2024b Mexico rules

2025-01-08 Thread Ertan Küçükoglu via tz
Hello, Below is a section taken from v2024b northamerica file # Rule NAMEFROMTO - IN ON AT SAVE LETTER/S RuleMexico 1931only- April 30 0:001:00D RuleMexico 1931only- Oct 1 0:000 S Rule

[tz] [PROPOSED 2/7] Warn about 2-digit years in strftime man page

2025-01-08 Thread Paul Eggert via tz
* newstrftime.3: Warn more about two-digit years. --- newstrftime.3 | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/newstrftime.3 b/newstrftime.3 index 21aef9d0..e8200095 100644 --- a/newstrftime.3 +++ b/newstrftime.3 @@ -144,6 +144,9 @@ is replaced by the locale

[tz] Re: v2024b Mexico rules

2025-01-08 Thread Paul Eggert via tz
On 2025-01-08 00:28, Ertan Küçükoglu via tz wrote: I wonder if that is the new format and not an error. It's not a new format and is not an error; full month names like "April" have been documented for decades and have worked in zic. That being said, some other converters didn't grok "April"

[tz] [PROPOSED 1/7] Modernize date man page

2025-01-08 Thread Paul Eggert via tz
* date.1: Update the example to next year. Remove duplication of spec with strftime, as this is too much of a pain to maintain separately for what is just a demo; but give an example for clarity. Update list of files accessed, to match current code. --- date.1 | 110 +--

[tz] [PROPOSED 7/7] Fix ctime conformace bug

2025-01-08 Thread Paul Eggert via tz
* asctime.c (ctime): Call localtime and asctime, not localtime_r and ctime_r. --- asctime.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/asctime.c b/asctime.c index 3817182e..1bfcafe9 100644 --- a/asctime.c +++ b/asctime.c @@ -162,5 +162,8 @@ ctime_r(const time_t *timep,

[tz] [PROPOSED 3/7] Stop using \*- in man pages

2025-01-08 Thread Paul Eggert via tz
The \*- portability hassle in man pages is no longer needed, now that groff puts into a PDF file something that cuts and pastes as ASCII minus. Removing this hack simplifies the man pages and is nicer for some man page processors. --- date.1| 16 +++--- newctime.3| 4 +- newstrftim

[tz] [PROPOSED 4/7] newctime doc improvements

2025-01-08 Thread Paul Eggert via tz
* newctime.3: Reorder so that functions are described in a more sensible order, e.g., asctime is explained first and ctime merely defers to it. Also put asctime and ctime later since they are deprecated. Mention that localtime and gmtime return a null pointer on failure. --- newctime.3 | 148

[tz] [PROPOSED 5/7] NetBSD defines STD_INSPIRED functions

2025-01-08 Thread Paul Eggert via tz
* private.h (STD_INSPIRED): Default to 1 on NetBSD, since NetBSD has these functions. --- private.h | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/private.h b/private.h index de816077..0a546e02 100644 --- a/private.h +++ b/private.h @@ -810,7 +810,11 @@ extern long altzon