NetBSD Problem Report #56042

From www@netbsd.org  Sat Mar  6 23:06:28 2021
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 4130E1A9217
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  6 Mar 2021 23:06:28 +0000 (UTC)
Message-Id: <20210306230627.128CB1A9242@mollari.NetBSD.org>
Date: Sat,  6 Mar 2021 23:06:27 +0000 (UTC)
From: netbsd@eq.cz
Reply-To: netbsd@eq.cz
To: gnats-bugs@NetBSD.org
Subject: Timezone names bugs in parsedate(3) manual page
X-Send-Pr-Version: www-1.0

>Number:         56042
>Category:       bin
>Synopsis:       Timezone names bugs in parsedate(3) manual page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kre
>State:          closed
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 06 23:10:00 +0000 2021
>Closed-Date:    Sat May 22 13:36:29 +0000 2021
>Last-Modified:  Sat May 22 13:36:29 +0000 2021
>Originator:     rudolf
>Release:        current
>Organization:
>Environment:
NetBSD 9.99.76 (GENERIC) #0: Mon Nov 30 22:26:30 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
There seem to be some bugs in the ``Timezone names'' list in parsedate(3) manual page:

- listed twice with different offsets: acst (+0930), acst (+1030)
- incorrect offset: ist (+0550)
- zp4 (+0400), zp5 (+0500), zp6 (+0600) can't be used in ``date -d ...'' (error: Unrecognized date format) - this may have changed since my system was actually current

>How-To-Repeat:
see the output of:

for tz in acst ist zp4 zp5 zp6; do
date -d "2021-01-01 00:00:00 $tz"
done



>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->kre
Responsible-Changed-By: kre@NetBSD.org
Responsible-Changed-When: Sun, 16 May 2021 08:34:21 +0000
Responsible-Changed-Why:
I am looking into this PR


From: "Robert Elz" <kre@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/56042 CVS commit: src/lib/libutil
Date: Sun, 16 May 2021 19:42:36 +0000

 Module Name:	src
 Committed By:	kre
 Date:		Sun May 16 19:42:35 UTC 2021

 Modified Files:
 	src/lib/libutil: parsedate.3

 Log Message:
 PR bin/56042

 Fix typos (2nd acst should have been acdt), 0550 for ist should be 0530
 (5.5 hours is not 5 hours and 50 minutes...).

 Comment out the zp4 zp5 and zp6 zone names.   They are supposedly supported
 by the source (they're in the table) but cannot work, as the parsedate
 lexer doesn't allow a "word" to start with an alpha and also contain
 digits.   Maybe (just maybe) that could be fixed sometime, but since these
 have never worked, and no-one has ever seemed to miss them, and they're the
 only words which are of that form, for now, just stop pretending they work.


 To generate a diff of this commit:
 cvs rdiff -u -r1.25 -r1.26 src/lib/libutil/parsedate.3

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->feedback
State-Changed-By: kre@NetBSD.org
State-Changed-When: Sun, 16 May 2021 19:45:27 +0000
State-Changed-Why:
Thanks for noticing the errors.

Are the changes made to the man page enough to satisfy you?


From: rudolf <netbsd@eq.cz>
To: gnats-bugs@netbsd.org, kre@netbsd.org, netbsd-bugs@netbsd.org,
 gnats-admin@netbsd.org
Cc: 
Subject: Re: bin/56042 (Timezone names bugs in parsedate(3) manual page)
Date: Sat, 22 May 2021 09:52:30 +0200

 On 5/16/21 9:45 PM, kre@NetBSD.org wrote:
 > Thanks for noticing the errors.

 Thank you for fixing them.

 > Are the changes made to the man page enough to satisfy you?

 Yes, thanks.

 r.

State-Changed-From-To: feedback->closed
State-Changed-By: kre@NetBSD.org
State-Changed-When: Sat, 22 May 2021 13:36:29 +0000
State-Changed-Why:
Confirmed as satisfactory.   Thanks for the PR.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.