bug#34608: date +%+4C is unimplemented, contrary to POSIX

2019-02-25 Thread Paul Eggert
Eric Blake wrote: The best I can do is search austingroupbugs.net for all bugs containing strftime, which pulls up a current total of 25 issues. Thanks for doing that. I read through those issues, and the only one that seems relevant (i.e., resolved by austingroup but not in Gnulib) is the

bug#34608: date +%+4C is unimplemented, contrary to POSIX

2019-02-22 Thread Eric Blake
On 2/21/19 10:01 PM, Paul Eggert wrote: > Eric Blake wrote: >> That used to be true, but now POSIX wants date to behave as if it uses >> strftime: >> >> http://austingroupbugs.net/view.php?id=466 > > Ah, I didn't know that. Is there a list of recent changes to the POSIX > spec for strftime

bug#34608: date +%+4C is unimplemented, contrary to POSIX

2019-02-21 Thread Paul Eggert
Eric Blake wrote: That used to be true, but now POSIX wants date to behave as if it uses strftime: http://austingroupbugs.net/view.php?id=466 Ah, I didn't know that. Is there a list of recent changes to the POSIX spec for strftime somewhere? I can look to see which of them have made their

bug#34608: date +%+4C is unimplemented, contrary to POSIX

2019-02-21 Thread Eric Blake
On 2/21/19 9:37 PM, Paul Eggert wrote: > Eric Blake wrote: > >> date -d 0001-01-01 +.%+4C. >> >> should produce ".+000.", but currently it produces ".%+4C." because the >> + flag is unimplemented. >> >> See also http://austingroupbugs.net/view.php?id=1184 > > Surely this bug should be reported

bug#34608: date +%+4C is unimplemented, contrary to POSIX

2019-02-21 Thread Paul Eggert
Eric Blake wrote: date -d 0001-01-01 +.%+4C. should produce ".+000.", but currently it produces ".%+4C." because the + flag is unimplemented. See also http://austingroupbugs.net/view.php?id=1184 Surely this bug should be reported against strftime, not against 'date'. POSIX does require

bug#34608: date +%+4C is unimplemented, contrary to POSIX

2019-02-21 Thread Eric Blake
POSIX requires the '+' flag in %C to output padding with leading 0, and additionally to add a +/- indicator if the minimum field width is larger than 2 bytes. Thus: date -d 0001-01-01 +.%+4C. should produce ".+000.", but currently it produces ".%+4C." because the + flag is unimplemented. See