all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fabrice Popineau <fabrice.popineau@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Paul Eggert <eggert@cs.ucla.edu>,
	Andreas Schwab <schwab@linux-m68k.org>,
	emacs-devel@gnu.org
Subject: Re: Setting TZ in set_time_zone_rule
Date: Fri, 30 Nov 2012 10:26:09 +0100	[thread overview]
Message-ID: <CAFgFV9OaMWGpO_=oTu1-BuOZEi+YDiLvRnVovHc7-_RDqZ6sug@mail.gmail.com> (raw)
In-Reply-To: <83d2yvv4o0.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

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 <eliz@gnu.org>

> > Date: Thu, 29 Nov 2012 13:39:24 -0800
> > From: Paul Eggert <eggert@cs.ucla.edu>
> > 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'?
>

[-- Attachment #2: Type: text/html, Size: 1386 bytes --]

  reply	other threads:[~2012-11-30  9:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-28 18:12 Setting TZ in set_time_zone_rule Eli Zaretskii
2012-11-28 20:21 ` Paul Eggert
2012-11-28 21:24   ` Andreas Schwab
2012-11-29  1:21     ` Paul Eggert
2012-11-29  3:44       ` Eli Zaretskii
2012-11-29 21:39         ` Paul Eggert
2012-11-30  9:08           ` Eli Zaretskii
2012-11-30  9:26             ` Fabrice Popineau [this message]
2012-11-30 10:02               ` Eli Zaretskii
2012-11-30 18:22                 ` Paul Eggert
2012-11-30 18:52                   ` Eli Zaretskii
2012-11-30 20:47                     ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFgFV9OaMWGpO_=oTu1-BuOZEi+YDiLvRnVovHc7-_RDqZ6sug@mail.gmail.com' \
    --to=fabrice.popineau@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.