-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Reproducers: $ printf '%(%F)T\n' '4th tuesday in march 2016' 2016-04-09 $ printf '%(%F)T\n' '4nd tuesday in march 2016' 2016-03-08 Expected, in both cases: 2016-03-22 It was a left over, while I reworked these things some time ago, I normalised the 'f' variable usage (specially the +1 -1 usage), and the cryptic TM_ORDINAL case was kinda magical and I left it untouched. Now thanx @stephane-chazelas, I got a test case and can understand it. I added a test case to catch any regression in this area if one try to make printf better :-) src/lib/libast/tm/tmxdate.c: - tmxdate(): While normalising the 'f' variable usage into tmxdate(), also handle the TM_ORDINAL case, which had been overlooked. Thanks to @stephane-chazelas for the bug report. Resolves: #733
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters