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 /m4/locale-ar.m4 | |
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 'm4/locale-ar.m4')
0 files changed, 0 insertions, 0 deletions