]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
strftime.c cleanup to handle outlandish years.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Feb 2005 00:27:17 +0000 (00:27 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Feb 2005 00:27:17 +0000 (00:27 +0000)
lib/ChangeLog

index 60f76b2b67536a15d6d6294cf3a1e6ba5275f9f0..5f8790f95b2f6c45601633086863226f91294330 100644 (file)
@@ -1,3 +1,15 @@
+2005-02-23  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * strftime.c: Include <stdbool.h>.  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  <eggert@cs.ucla.edu>
 
        * Makefile.am (libfetish_a_SOURCES): Remove xnanosleep.c,