]> Savannah Git Hosting - gnulib.git/commit
nstrftime: improve handling of invalid formats
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Dec 2021 23:28:08 +0000 (15:28 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 28 Dec 2021 23:29:37 +0000 (15:29 -0800)
commita2c2b549a759952349baaffcaa37caa647d59e71
tree50dbfafc29a98ec33b3c79c3af331f6ba35d9310
parentbc8ed44229e292980637474d2f26a6fb54d4d7bf
nstrftime: improve handling of invalid formats

* lib/nstrftime.c (__strftime_internal): Without this change,
‘date +'%0_-+^#1%A'’ would output ‘%A’; with it, it outputs
something like ‘%0_-+^#1Tuesday’ which is easier to debug and to
write wrappers for (such as the nstrftime/fprintftime usage in GNU
‘date’).
ChangeLog
lib/nstrftime.c