From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Setting TZ in set_time_zone_rule Date: Fri, 30 Nov 2012 10:22:35 -0800 Message-ID: <50B8F96B.80803@cs.ucla.edu> 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> <837gp3v26f.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1354299795 22955 80.91.229.3 (30 Nov 2012 18:23:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Nov 2012 18:23:15 +0000 (UTC) Cc: schwab@linux-m68k.org, Fabrice Popineau , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 30 19:23:27 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 1TeVEm-0006KR-VU for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2012 19:22:57 +0100 Original-Received: from localhost ([::1]:38257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeVEb-0002qE-9k for ged-emacs-devel@m.gmane.org; Fri, 30 Nov 2012 13:22:45 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeVEZ-0002q2-6z for emacs-devel@gnu.org; Fri, 30 Nov 2012 13:22:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TeVEY-0003Cu-Ds for emacs-devel@gnu.org; Fri, 30 Nov 2012 13:22:43 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:51159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TeVEX-0003B2-0L; Fri, 30 Nov 2012 13:22:41 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 0E046A60002; Fri, 30 Nov 2012 10:22:40 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id v+dokfDMtlzy; Fri, 30 Nov 2012 10:22:39 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 704A9A60001; Fri, 30 Nov 2012 10:22:39 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <837gp3v26f.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 131.179.128.62 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:155150 Archived-At: On 11/30/12 02:02, Eli Zaretskii wrote: > Paul, can you point out where would 'unsetenv' be needed, > and why? set_time_zone_rule (0) needs to unset TZ. >> > Also, is unsetenv("TZ") the same as putenv("TZ=") ? > Yes. Doesn't the former unset TZ, and the latter set TZ to the empty string?