From 157fdac5711801f617b98c0b9b56aefae901922c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 24 Feb 2005 00:27:17 +0000 Subject: [PATCH] strftime.c cleanup to handle outlandish years. --- lib/ChangeLog | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index 60f76b2b67..5f8790f95b 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,15 @@ +2005-02-23 Paul Eggert + + * strftime.c: Include . Use bool where appropriate, + instead of int. + (my_strftime): Do not mishandle years close to INT_MAX, by doing + the right thing even if adding 1900 would overflow. Similarly + for tm_mon + 1 and tm_yday + 1. + Make %Y always equivalent to %C%y, and similarly for %G and %g. + (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional. + (DO_SIGNED_NUMBER): New macro. + (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1. + 2005-02-21 Paul Eggert * Makefile.am (libfetish_a_SOURCES): Remove xnanosleep.c, -- 2.47.3