]> Savannah Git Hosting - gnulib.git/commit
nstrftime: use clearer code for padding
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2024 16:19:17 +0000 (09:19 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 May 2024 16:29:33 +0000 (09:29 -0700)
commit4121ae7ad2859331447fe719d255e3d22953f327
tree832293c2c087a225d5764351eb9809f8088527bb
parentaacceb6eff58eba91290d930ea9b8275699057cf
nstrftime: use clearer code for padding

This also works around GCC bug 114965
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114965>.
* lib/strftime.c (enum pad_style): New type.
(width_add, my_strftime, __strftime_internal):
Use it instead of checking the raw chars.
* tests/test-nstrftime.h (T): Test for the GCC bug.
ChangeLog
lib/strftime.c
tests/test-nstrftime.h