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

Fabian Keil freebsd-listen at fabiankeil.de
Thu Jun 19 09:11:14 UTC 2014


"Pedro F. Giffuni" <pfg at FreeBSD.org> wrote:

> Author: pfg
> Date: Wed Jun 18 23:34:48 2014
> New Revision: 267627
> URL: http://svnweb.freebsd.org/changeset/base/267627
> 
> Log:
>   strptime: add support for %t and %n
>   
>   Posix strptime() requires support for %t and %n, which were added
>   to the illumos port.  Curiously we were skipping white spaces by
>   default in most other cases making %t meaningless.
>   
>   We now skip spaces in the case of the %e specifier as strftime(3)
>   explicitly adds a space for the single digit case.
>   
>   Reference:
>   http://pubs.opengroup.org/onlinepubs/009695399/functions/strptime.html

This also fixes standards/173421:
http://www.freebsd.org/cgi/query-pr.cgi?pr=standards/173421
(The "Bugzilla version" apparently lacks the test.)

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20140619/4fac4ce7/attachment.sig>


More information about the svn-src-all mailing list