From owner-freebsd-bugs Sun Jan 13 2:50:24 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8CC4C37B482 for ; Sun, 13 Jan 2002 02:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g0DAo1G85832; Sun, 13 Jan 2002 02:50:01 -0800 (PST) (envelope-from gnats) Received: from raven.robbins.dropbear.id.au (121.a.004.mel.iprimus.net.au [210.50.36.121]) by hub.freebsd.org (Postfix) with ESMTP id 5DCC837B402 for ; Sun, 13 Jan 2002 02:49:03 -0800 (PST) Received: (from tim@localhost) by raven.robbins.dropbear.id.au (8.11.6/8.11.6) id g0DALGU03643; Sun, 13 Jan 2002 21:21:16 +1100 (EST) (envelope-from tim) Message-Id: <200201131021.g0DALGU03643@raven.robbins.dropbear.id.au> Date: Sun, 13 Jan 2002 21:21:16 +1100 (EST) From: "Tim J. Robbins" Reply-To: "Tim J. Robbins" To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/33834: strptime(3) is misleading Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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