• Show log

    Commit

  • Hash : c863cc75
    Author : Paul Eggert
    Date : 2020-08-15T16:05:35

    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.