From owner-svn-src-head@freebsd.org Sun Mar 29 11:20:21 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 992B127B513; Sun, 29 Mar 2020 11:20:21 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48qtRm3lLdz4JJr; Sun, 29 Mar 2020 11:20:19 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 02TB393g051397; Sun, 29 Mar 2020 04:03:09 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 02TB393j051396; Sun, 29 Mar 2020 04:03:09 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <202003291103.02TB393j051396@gndrsh.dnsmgr.net> Subject: Re: svn commit: r359419 - head/usr.bin/ncal In-Reply-To: <202003290418.02T4IR46003292@repo.freebsd.org> To: Greg Lehey Date: Sun, 29 Mar 2020 04:03:09 -0700 (PDT) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 48qtRm3lLdz4JJr X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; REPLY(-4.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2020 11:20:21 -0000 > Author: grog > Date: Sun Mar 29 04:18:27 2020 > New Revision: 359419 > URL: https://svnweb.freebsd.org/changeset/base/359419 > > Log: > Remove spurious transition from Julian to Gregorian for country > "Latin". > > Arguably the entire -p option should be removed. It shows only a few > countries, and it doesn't have any relationship with the rest of the > program. This commit message and the diff below do not seem to match very well. Is this actually what you intended to commit? > > PR: 244801 > Submitted by: grog@ > Reported by: Hamid Ali > > Modified: > head/usr.bin/ncal/ncal.c > > Modified: head/usr.bin/ncal/ncal.c > ============================================================================== > --- head/usr.bin/ncal/ncal.c Sun Mar 29 04:14:57 2020 (r359418) > +++ head/usr.bin/ncal/ncal.c Sun Mar 29 04:18:27 2020 (r359419) > @@ -95,7 +95,6 @@ static struct djswitch { > {"IT", "Italy", {1582, 10, 4}}, > {"JP", "Japan", {1918, 12, 18}}, > {"LI", "Lithuania", {1918, 2, 1}}, > - {"LN", "Latin", {9999, 05, 31}}, > {"LU", "Luxembourg", {1582, 12, 14}}, > {"LV", "Latvia", {1918, 2, 1}}, > {"NL", "Netherlands", {1582, 12, 14}}, > @@ -580,7 +579,7 @@ printeaster(int y, int julian, int orthodox) > (y)++; \ > } > #define M2Y(m) ((m) / 12) > -#define M2M(m) (1 + (m) % 12) > +#define M2M(m) (1 + (m) % 12) > > /* Print all months for the period in the range [ before .. y-m .. after ]. */ > static void > @@ -925,7 +924,7 @@ mkmonthb(int y, int m, int jd_flag, struct monthlines > for (i = 0; i != 6; i++) { > l = 0; > for (j = firsts + 7 * i, k = 0; j < last && k != dw * 7; > - j++, k += dw) { > + j++, k += dw) { > if (j >= first) { > if (jd_flag) > dt.d = j - jan1 + 1; > -- Rod Grimes rgrimes@freebsd.org