summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2020-08-15 16:05:35 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2020-08-15 16:06:29 -0700
commitc863cc75571098bf0aac1c2fb87b74cb9016dc68 (patch)
tree86102eea0b96105e6d7941a1f5b46c77d2c23bfa /ChangeLog
parent4b612ed38a58801c05b650c845bc56cd906bed18 (diff)
downloadgnulib-c863cc75571098bf0aac1c2fb87b74cb9016dc68.tar.gz
nstrftime: be more predictable about errno
This aligns nstrftime better with draft POSIX 202x strftime. * lib/nstrftime.c: Include errno.h. (width_add, __strftime_internal): Set errno on failure, and preserve it on success. Check for mktime_z failure. * modules/nstrftime (Depends-on): Add errno. * modules/nstrftime-tests (Depends-on): Add atoll, intprops. * tests/test-nstrftime.c: Include intprops.h, limits.h. (errno_test): New test function. (main): Call it.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 86b5129918..eb80aba807 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2020-08-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ nstrftime: be more predictable about errno
+ This aligns nstrftime better with draft POSIX 202x strftime.
+ * lib/nstrftime.c: Include errno.h.
+ (width_add, __strftime_internal): Set errno on failure,
+ and preserve it on success. Check for mktime_z failure.
+ * modules/nstrftime (Depends-on): Add errno.
+ * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
+ * tests/test-nstrftime.c: Include intprops.h, limits.h.
+ (errno_test): New test function.
+ (main): Call it.
+
2020-08-15 Bruno Haible <bruno@clisp.org>
canonicalize: Fix a problem of the autoconf test on MSVC/clang.