From owner-freebsd-bugs@FreeBSD.ORG Thu Feb 19 10:30:24 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DAB616A4D0 for ; Thu, 19 Feb 2004 10:30:24 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76AD943D3F for ; Thu, 19 Feb 2004 10:30:24 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1JIUObv029864 for ; Thu, 19 Feb 2004 10:30:24 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1JIUO3P029863; Thu, 19 Feb 2004 10:30:24 -0800 (PST) (envelope-from gnats) Date: Thu, 19 Feb 2004 10:30:24 -0800 (PST) Message-Id: <200402191830.i1JIUO3P029863@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Makoto Matsushita Subject: Re: bin/63064: strptime fails on %z X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Makoto Matsushita List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Feb 2004 18:30:24 -0000 The following reply was made to PR bin/63064; it has been noted by GNATS. From: Makoto Matsushita To: bug-followup@FreeBSD.org Cc: Subject: Re: bin/63064: strptime fails on %z Date: Fri, 20 Feb 2004 03:21:20 +0900 sec> strptime fails to convert %z It can be considered that this is not a bug, and "by design". If there's a bug, it is in strptime(3) manual page which says "All conversion specifications are identical to those described in strftime(3)," apparently that's not true. From strftime(3) manpage: The strftime() function conforms to ISO/IEC 9899:1990 (``ISO C89'') with a lot of extensions including `%C', `%D', `%E*', `%e', `%G', `%g', `%h', `%k', `%l', `%n', `%O*', `%R', `%r', `%s', `%T', `%t', `%u', `%V', `%z', `%+'. Since '%z' format is not defined in th standard, it would be ok that strptime(3) doesn't support '%z'. Of course, it would be even better that strptime(3) supports all format characters in strftime(3). -- - Makoto `MAR' Matsushita