]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r267627:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 12 Jul 2014 18:44:47 +0000 (18:44 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 12 Jul 2014 18:44:47 +0000 (18:44 +0000)
commit0af3045daa62afe4ee84065c8c070b92d4d63365
tree9d7089182b5ee8feacb0fdd3bcb80621f8eb3275
parentf4152119186a21205b828d92aaffd53c1bbc8109
MFC r267627:
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

PR: 173421
Obtained from: Illumos (Rev. a11c1571b6942161b0186d0588609448066892c2)

git-svn-id: svn://svn.freebsd.org/base/stable/9@268574 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/stdtime/strptime.c