From owner-freebsd-bugs@freebsd.org Sat Apr 13 14:43:09 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EAC8157AB10 for ; Sat, 13 Apr 2019 14:43:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id BFDE586751 for ; Sat, 13 Apr 2019 14:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 7935C157AB0F; Sat, 13 Apr 2019 14:43:08 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 542EA157AB0E for ; Sat, 13 Apr 2019 14:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E35178674D for ; Sat, 13 Apr 2019 14:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 144F7B315 for ; Sat, 13 Apr 2019 14:43:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x3DEh64B047264 for ; Sat, 13 Apr 2019 14:43:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x3DEh6AR047263 for bugs@FreeBSD.org; Sat, 13 Apr 2019 14:43:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 237259] cal(1) command outputs wrong data in September 1752 Date: Sat, 13 Apr 2019 14:43:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: cem@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Apr 2019 14:43:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237259 --- Comment #4 from Conrad Meyer --- util-linux's cal(1) is unfortunately not an independent implementation for comparison purposes =E2=80=94 it's at least derived from BSD cal (and produ= ces same result, without extra options). Some more reading from our cal.1 page: -p Print the country codes and switching days from Julian to Gregorian Calendar as they are assumed by ncal. The country c= ode as determined from the local environment is marked with an asterisk. -s country_code Assume the switch from Julian to Gregorian Calendar at the date associated with the country_code. If not specified, ncal tries to guess the switch date from the local environment or falls b= ack to September 2, 1752. This was when Great Britain and her colonies switched to the Gregorian Calendar. ... BUGS The assignment of Julian=E2=80=93Gregorian switching dates to country = codes is historically naive for many countries. And from util-linux' cal.1: Two different calendar systems are used, Gregorian and Julian. These are nearly identical systems with Gregorian making a small adjustment to the=20 frequency of leap years; this facilitates improved synchronization with solar eve= nts like the equinoxes. The Gregorian calendar reform was introduced in 1582, but its adop=E2=80=90 tion continued up to 1923. By default cal uses the adoption da= te of 3 Sept 1752. From that date forward the Gregorian calendar is displaye= d;=20 previous dates use the Julian calendar system. 11 days were removed at the t= ime of adop=E2=80=90 tion to bring the calendar in sync with solar events. So Sept 1752 = has a mix of Julian and Gregorian dates by which the 2nd is followed by the 1= 4th (the 3rd through the 13th are absent). Optionally, either the proleptic Gregorian calendar or the Julian=20 calendar may be used exclusively. See --reform below. (N.B., our cal does not have this --reform date option.) --reform val This option sets the adoption date of the Gregorian cale= ndar reform. Calendar dates previous to reform use the Julian calendar sys= tem. Calen=E2=80=90 dar dates after reform use the Gregorian calendar system. = The argument val can be: =C2=B7 1752 - sets 3 September 1752 as the reform date (def= ault).=20=20 This is when the Gregorian calendar reform was adopted by the Briti= sh Empire. =C2=B7 gregorian - display Gregorian calendars exclusive= ly. This special placeholder sets the reform date below the smallest year th= at=20 cal can use; meaning all calendar output uses the Gregorian cale= ndar system. This is called the proleptic Gregorian calendar, because da= tes prior to the calendar system's creation use extrapolated values. =C2=B7 iso - alias of gregorian. The ISO 8601 standard for t= he representation of dates and times in information interchange requires usin= g=20 the pro=E2=80=90 leptic Gregorian calendar. =C2=B7 julian - display Julian calendars exclusively. Th= is special place=E2=80=90 holder sets the reform date above the largest year that ca= l=20 can use; meaning all calendar output uses the Julian calendar system. --=20 You are receiving this mail because: You are the assignee for the bug.=