diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-15 16:05:35 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-15 16:06:29 -0700 |
commit | c863cc75571098bf0aac1c2fb87b74cb9016dc68 (patch) | |
tree | 86102eea0b96105e6d7941a1f5b46c77d2c23bfa /ChangeLog | |
parent | 4b612ed38a58801c05b650c845bc56cd906bed18 (diff) | |
download | gnulib-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-- | ChangeLog | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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. |