Re: New bug introduced in strptime (was Re: svn commit: r272273 - head/lib/libc/stdtime)

2014-10-01 Thread Pedro Giffuni
On 10/01/14 17:05, Andrey Chernov wrote: On 02.10.2014 0:02, Pedro Giffuni wrote: Hello; I can reproduce this. On FreeBSD 9.1 (no patch): It was the bug in the original patch. I just miss it. Fix attached. Thank you both for the fix (and antoine for reporting it), I confirmed the fix works

Re: New bug introduced in strptime (was Re: svn commit: r272273 - head/lib/libc/stdtime)

2014-10-01 Thread Andrey Chernov
On 02.10.2014 0:02, Pedro Giffuni wrote: > Hello; > > I can reproduce this. On FreeBSD 9.1 (no patch): It was the bug in the original patch. I just miss it. Fix attached. -- http://ache.vniz.net/ --- strptime.c.bak 2014-10-02 01:44:39.0 +0400 +++ strptime.c 2014-10-02 01:59:20.000

New bug introduced in strptime (was Re: svn commit: r272273 - head/lib/libc/stdtime)

2014-10-01 Thread Pedro Giffuni
Hello; I can reproduce this. On FreeBSD 9.1 (no patch): pfg@minotaur:~$ uname -a FreeBSD minotaur.apache.org 9.1-RELEASE-p6 FreeBSD 9.1-RELEASE-p6 #0 r254631: Thu Aug 22 13:59:50 UTC 2013 r...@loki.apache.org:/usr/obj/usr/src/sys/ASF amd64 pfg@minotaur:~$ date -j -f '%a, %e %b %Y %T %z' "S

Re: svn commit: r272273 - head/lib/libc/stdtime

2014-10-01 Thread Antoine Brodin
On Sun, Sep 28, 2014 at 11:20 PM, Pedro F. Giffuni 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

Re: svn commit: r272273 - head/lib/libc/stdtime

2014-09-28 Thread Pedro Giffuni
On 09/28/14 16:27, Garrett Cooper wrote: On Sep 28, 2014, at 14:20, "Pedro F. Giffuni" 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 missi

Re: svn commit: r272273 - head/lib/libc/stdtime

2014-09-28 Thread Garrett Cooper
> On Sep 28, 2014, at 14:20, "Pedro F. Giffuni" 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

svn commit: r272273 - head/lib/libc/stdtime

2014-09-28 Thread Pedro F. Giffuni
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