From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: Setting TZ in set_time_zone_rule Date: Fri, 30 Nov 2012 10:26:09 +0100 Message-ID: References: <83624pwq8z.fsf@gnu.org> <50B67266.1000509@cs.ucla.edu> <50B6B886.9020309@cs.ucla.edu> <83zk21ul87.fsf@gnu.org> <50B7D60C.7070306@cs.ucla.edu> <83d2yvv4o0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b6225709c348c04cfb2fe6d X-Trace: ger.gmane.org 1354285541 15632 80.91.229.3 (30 Nov 2012 14:25:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 14:25:41 +0000 (UTC) Cc: Paul Eggert , Andreas Schwab , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 15:25:52 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TeRXH-00010l-GZ for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2012 15:25:47 +0100 Original-Received: from localhost ([::1]:53439 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeRX6-0008Bd-5M for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2012 09:25:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeMrp-0007I2-Er for emacs-devel@gnu.org; Fri, 30 Nov 2012 04:26:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeMrj-0000kj-JA for emacs-devel@gnu.org; Fri, 30 Nov 2012 04:26:41 -0500 Original-Received: from mail-ee0-f41.google.com ([74.125.83.41]:47350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeMre-0000k6-VH; Fri, 30 Nov 2012 04:26:31 -0500 Original-Received: by mail-ee0-f41.google.com with SMTP id d41so176497eek.0 for ; Fri, 30 Nov 2012 01:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/bYHHqirK5Y4XVYkUhGOfEBrl+6+t0KNp6oE/hvfzVw=; b=JlMXfok1R4VsF+0SSBMr9iwyANO2e4X5i2iItfnQJ04P4Sg3vRYrCfWNNRQuchTHwV Ra4rSzu/9JNy18bmqcEoJg3oyL0CFoPo3WNslfRSqQOnNXVZPxwPlJymixBna+TYf6K8 5s1GNDwz52jLqlMgkSMzaavgXb/ZLO6hSyQUwNfI6Dy6Ncjie4sXgaEQ9v0UIjbxYpqX eZA3VoijTqDb7XT5j741pJEF7QosH2X5O5k22p3Ufbiqc0RYSe+NIgDHIYwTRezlUaFZ R3jfZlvVPMRu2Pp/UpnwVwMYjgZLny0h7X+6FWqmd9tAYJ8yuh+846uDFeFSQZwPybwm ly8g== Original-Received: by 10.14.1.69 with SMTP id 45mr2517129eec.23.1354267589620; Fri, 30 Nov 2012 01:26:29 -0800 (PST) Original-Received: by 10.223.68.203 with HTTP; Fri, 30 Nov 2012 01:26:09 -0800 (PST) In-Reply-To: <83d2yvv4o0.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.83.41 X-Mailman-Approved-At: Fri, 30 Nov 2012 09:25:35 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155145 Archived-At: --047d7b6225709c348c04cfb2fe6d Content-Type: text/plain; charset=ISO-8859-1 Do we really need to unsetenv the TZ variable? I had the impression that we need to set it forth and back, to change it temporarily. Also, is unsetenv("TZ") the same as putenv("TZ=") ? Fabrice 2012/11/30 Eli Zaretskii > > Date: Thu, 29 Nov 2012 13:39:24 -0800 > > From: Paul Eggert > > CC: fabrice.popineau@gmail.com, schwab@linux-m68k.org, > > emacs-devel@gnu.org > > > > On 11/28/12 19:44, Eli Zaretskii wrote: > > > So would it be a problem to use 'setenv' in that function? > > > > I think setenv could be used. It'd be a tiny bit tricky, though, > > as I expect unsetenv would also need to be used, in some > > cases. > > Is 'unsetenv's less wide-spread than 'setenv'? > --047d7b6225709c348c04cfb2fe6d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Do we really need to unsetenv the TZ variable?
I had the impression tha= t we need to set it forth and back,
to change it temporarily.

Also, is unsetenv("TZ") the same as putenv(= "TZ=3D") ?

Fabrice


2012/11/30 Eli Zaretskii <eliz@gnu.org>
<= blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px= #ccc solid;padding-left:1ex"> > Date: Thu, 29 Nov 2012 13:39:24 -0800
> From: Paul Eggert <eggert@cs.= ucla.edu>
> CC: fabrice.popineau@gma= il.com, schwab@linux-m68k.org<= /a>,
> =A0
emacs-devel@gnu.org
>
> On 11/28/12 19:44, Eli Zaretskii wrote:
> > So would it be a problem to use 'setenv' in that function= ?
>
> I think setenv could be used. =A0It'd be a tiny bit tricky, though= ,
> as I expect unsetenv would also need to be used, in some
> cases.

Is 'unsetenv's less wide-spread than 'setenv'?

--047d7b6225709c348c04cfb2fe6d--