summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-09-28 21:20:20 +0000
committerpfg <pfg@FreeBSD.org>2014-09-28 21:20:20 +0000
commitc40729136d76ac63297e28c8515d679451219e7e (patch)
tree4ee1758593e24938d35ac3c03f95c707e764306c /usr.sbin
parent566859d2730ce60820765ba2b643a2e1f2382d44 (diff)
downloadFreeBSD-src-c40729136d76ac63297e28c8515d679451219e7e.zip
FreeBSD-src-c40729136d76ac63297e28c8515d679451219e7e.tar.gz
Add strptime(3) support for %U and %W (take 2)
Add support for the missing POSIX-2001 %U and %W features: the existing FreeBSD strptime code recognizes both directives and validates that the week number lies in the permitted range, but then simply discards the value. Initial support for the feature was written by Paul Green. David Carlier added the initial handling of tm_wday/tm_yday. Major credit goes to Andrey Chernov for detecting much of the brokenness, and rewriting/cleaning most of the code, making it much more robust. Tested independently with the strptime test from the GNU C library. PR: 137307 MFC after: 1 month Relnotes: yes
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud