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: Wed, 28 Nov 2012 12:21:58 -0800 Message-ID: <50B67266.1000509@cs.ucla.edu> References: <83624pwq8z.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 1354134138 30984 80.91.229.3 (28 Nov 2012 20:22:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Nov 2012 20:22:18 +0000 (UTC) Cc: Fabrice Popineau , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 28 21:22:29 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 1Tdo9K-0004zW-Uy for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2012 21:22:27 +0100 Original-Received: from localhost ([::1]:39328 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tdo99-0002cj-OH for ged-emacs-devel@m.gmane.org; Wed, 28 Nov 2012 15:22:15 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tdo98-0002ce-5e for emacs-devel@gnu.org; Wed, 28 Nov 2012 15:22:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tdo97-0004jT-Cv for emacs-devel@gnu.org; Wed, 28 Nov 2012 15:22:14 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:53105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tdo95-0004ht-GC; Wed, 28 Nov 2012 15:22:11 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 41E72A60003; Wed, 28 Nov 2012 12:22:04 -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 ck0GIIvJMS3h; Wed, 28 Nov 2012 12:22:03 -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 CEA8DA60001; Wed, 28 Nov 2012 12:22:03 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <83624pwq8z.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:155115 Archived-At: On 11/28/12 10:12, Eli Zaretskii wrote: > Is there a good reason why we don't use 'putenv' in > set_time_zone_rule, and instead manipulate 'environ' directly? putenv is not not in POSIX 1003.1-1988. In the current POSIX standard (2008), putenv is marked as an XSI extension, which means it's not required for POSIX conformance. I don't offhand know of any Emacs porting target that lacks putenv, though I would not be surprised if there were one. One possibility is to have the mainline code assume that putenv works, and to use the gnulib putenv module for the rare platforms that lack putenv.