From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4383 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCHv2] Add support for leap seconds in zoneinfo files Date: Fri, 6 Dec 2013 14:27:29 +0100 Message-ID: <20131206132729.GD1685@port70.net> References: <529FD33A.8000509@skarnet.org> <20131205144311.GG24286@brightrain.aerifal.cx> <52A0AA6A.60608@skarnet.org> <20131205164022.GK24286@brightrain.aerifal.cx> <52A11C0D.1080705@skarnet.org> <20131206004535.GT24286@brightrain.aerifal.cx> <52A12548.80508@skarnet.org> <20131206062908.GY24286@brightrain.aerifal.cx> <52A1A904.1000404@skarnet.org> <20131206125055.GA24286@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1386336455 20520 80.91.229.3 (6 Dec 2013 13:27:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2013 13:27:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4387-gllmg-musl=m.gmane.org@lists.openwall.com Fri Dec 06 14:27:41 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VovRV-0005hw-N6 for gllmg-musl@plane.gmane.org; Fri, 06 Dec 2013 14:27:41 +0100 Original-Received: (qmail 22474 invoked by uid 550); 6 Dec 2013 13:27:41 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 22466 invoked from network); 6 Dec 2013 13:27:41 -0000 Content-Disposition: inline In-Reply-To: <20131206125055.GA24286@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4383 Archived-At: * Rich Felker [2013-12-06 07:50:55 -0500]: > On Fri, Dec 06, 2013 at 10:37:56AM +0000, Laurent Bercot wrote: > > Yes, people using TAI-10 should also be using right/ timezones instead of > > posix/ ones. That's why TZ as a test is appealing: it ensures consistency. > > But at that level it's entirely the admin's responsibility to have > > consistent configuration: leap-second-conscious admins won't mind doing > > some extra work to have a setting that pleases them. > > The problem with this approach is that an individual user may unset > $TZ or set it to a POSIX-syntax timezone such as "UTC" on a system > where the system clock is using TAI-10. Users generally expect this to > work, and their expectation is justified. Valid scripts might even use > TZ=UTC as part of their functionality. this just means the tz data depends on the timescale used if an admin is willing to do the leapsecond hassle then putting the "right" files into /usr/share/zoneinfo can be done as well, TZ=UTC will work the current practice of using TZ=right/foo is wrong, it means that gmtime-localtime is not the tzoffset or gmtime depends on TZ ie. an admin can choose to set up different timescale, but then leapseconds and zoneinfo must be configured in the filesystem accordingly (and regularly updated)