Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2002 21:21:16 +1100 (EST)
From:      "Tim J. Robbins" <tim@robbins.dropbear.id.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/33834: strptime(3) is misleading
Message-ID:  <200201131021.g0DALGU03643@raven.robbins.dropbear.id.au>

next in thread | raw e-mail | index | archive | help

>Number:         33834
>Category:       bin
>Synopsis:       strptime(3) is misleading
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 13 02:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tim J. Robbins
>Release:        FreeBSD 4.5-RC i386
>Organization:
>Environment:
System: FreeBSD raven.robbins.dropbear.id.au 4.5-RC FreeBSD 4.5-RC #3: Sat Jan 12 17:11:56 EST 2002 tim@raven.robbins.dropbear.id.au:/usr/obj/usr/src/sys/RAVEN i386


	
>Description:
strptime(3) claims that the conversion specifiers are exactly as those for
strftime(3); this is an exaggeration: %n %t %G %g %u %V %v %z are not
implemented in strptime.c.

>How-To-Repeat:
man 3 strptime
>Fix:

Explain that these conversions aren't implemented. If I get time, I'll
try to implement the missing ones.

--- strptime.3.old	Sun Jan 13 20:59:01 2002
+++ strptime.3	Sun Jan 13 21:12:31 2002
@@ -57,8 +57,21 @@
 All ordinary characters are matched exactly with the buffer, where
 white space in the format string will match any amount of white space
 in the buffer.
-All conversion specifications are identical to those described in
-.Xr strftime 3 .
+Conversion specifications are identical to those described in
+.Xr strftime 3 ,
+except for
+.Fa \&%n
+and
+.Fa \&%t
+which are unnecessary (white space is always ignored), and
+.Fa \&%G ,
+.Fa \&%g ,
+.Fa \&%u ,
+.Fa \&%V ,
+.Fa \&%v
+and
+.Fa \&%z
+which are not implemented.
 .Pp
 Two-digit year values, including formats
 .Fa %y
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201131021.g0DALGU03643>