svn commit: r272273 - head/lib/libc/stdtime
Pedro Giffuni
pfg at freebsd.org
Sun Sep 28 21:47:32 UTC 2014
On 09/28/14 16:27, Garrett Cooper wrote:
>> On Sep 28, 2014, at 14:20, "Pedro F. Giffuni" <pfg at FreeBSD.org> wrote:
>>
>> Author: pfg
>> Date: Sun Sep 28 21:20:20 2014
>> New Revision: 272273
>> URL: http://svnweb.freebsd.org/changeset/base/272273
>>
>> Log:
>> 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.
> I'll try the netbsd testcases as well.
> Thanks!
Great! It may be that NetBSD doesn't support %U %W.
Still, it would be really interesting to run the NetBSD tests after
applying the patch here:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=93197
Regards,
Pedro.
More information about the svn-src-head
mailing list