From owner-freebsd-standards@FreeBSD.ORG Tue Jun 8 15:14:36 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2C1F16A4CE; Tue, 8 Jun 2004 15:14:36 +0000 (GMT) Received: from electra.cse.Buffalo.EDU (electra.cse.Buffalo.EDU [128.205.32.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 510AD43D45; Tue, 8 Jun 2004 15:14:36 +0000 (GMT) (envelope-from kensmith@cse.Buffalo.EDU) Received: from electra.cse.Buffalo.EDU (kensmith@localhost [127.0.0.1]) i58FEMAx014813; Tue, 8 Jun 2004 11:14:22 -0400 (EDT) Received: (from kensmith@localhost) by electra.cse.Buffalo.EDU (8.12.10/8.12.9/Submit) id i58FELn6014812; Tue, 8 Jun 2004 11:14:21 -0400 (EDT) Date: Tue, 8 Jun 2004 11:14:21 -0400 From: Ken Smith To: standards@freebsd.org Message-ID: <20040608151421.GA14487@electra.cse.Buffalo.EDU> References: <20040607.082534.17038697.imp@bsdimp.com> <200406071712.i57HC805042166@grimreaper.grondar.org> <20040608024746.GB25445@electra.cse.Buffalo.EDU> <200406080316.i583GECP038131@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200406080316.i583GECP038131@khavrinen.lcs.mit.edu> User-Agent: Mutt/1.4.1i cc: wollman@freebsd.org cc: des@freebsd.org Subject: Re: cvs commit: CVSROOT cfg_local.pm X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 15:14:36 -0000 On Mon, Jun 07, 2004 at 11:16:14PM -0400, Garrett Wollman wrote: > [Moving this discussion to -standards.] > > < said: > > > It sounds like it would be better for the system to say "UTC" instead > > of "GMT" in the absence of /etc/localtime. Does anyone disagree? > > I don't think POSIX reaches this question. It says that there shall > be a default timezone used when the TZ variable is not set, but > doesn't say how this is established or what it should be, so I'm fine > with that. (But it will be a challenge to find the right bits in > localtime.c to frob in order to make it happen, as I just found when I > looked.) > Believe it or not, if we don't mind all the mention of GMT in the file and all the functions/variables being named "gmt" then I think this is all that's needed: Index: localtime.c =================================================================== RCS file: /home/ncvs/src/lib/libc/stdtime/localtime.c,v retrieving revision 1.36 diff -u -r1.36 localtime.c --- localtime.c 16 Feb 2003 17:29:11 -0000 1.36 +++ localtime.c 8 Jun 2004 04:49:30 -0000 @@ -70,7 +70,7 @@ static char wildabbr[] = "WILDABBR"; -static const char gmt[] = "GMT"; +static const char gmt[] = "UTC"; struct ttinfo { /* time type information */ long tt_gmtoff; /* GMT offset in seconds */ -------------------------- It seems to be working: breathed 25 % uname -a FreeBSD breathed.cse.buffalo.edu 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Tue Jun 8 06:59:48 EDT 2004 root@breathed.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64 breathed 26 % date Tue Jun 8 15:04:49 UTC 2004 breathed 27 % setenv TZ GMT breathed 28 % date Tue Jun 8 15:04:55 GMT 2004 breathed 29 % setenv TZ EST5EDT breathed 30 % date Tue Jun 8 11:05:08 EDT 2004 breathed 31 % unsetenv TZ breathed 32 % date Tue Jun 8 15:05:13 UTC 2004 breathed 33 % -------------------------- I'm new to changes like this... Has this been brought up in enough places to proceed in a few days (give people a bit more time to decide to complain)? -- Ken Smith - From there to here, from here to | kensmith@cse.buffalo.edu there, funny things are everywhere. | - Theodore Geisel |