Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 6488 invoked from network); 3 Jul 2007 04:38:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2007 04:38:06 -0000 Received: (qmail 14918 invoked by uid 500); 3 Jul 2007 04:38:09 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 14908 invoked by uid 500); 3 Jul 2007 04:38:09 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 14889 invoked by uid 99); 3 Jul 2007 04:38:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 21:38:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS,UPPERCASE_25_50 X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of msebor@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2007 21:38:03 -0700 Received: by wa-out-1112.google.com with SMTP id n4so1961519wag for ; Mon, 02 Jul 2007 21:37:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=ZCsNwFHarAppzIC6QpaHgTfBdWQKCVJrE+zfUTonSnDpkiqgJKcZX9ShRojXTRUrStKxd1OOrgD8QYB4XaGQj+yIxQ8sVuQr3TOflIXTE6eDRq8LitikGQC8dbFTz1ZBiBkIaEBFl6Qe51yEBygi1+qtXlOu8HXXSj+kBW7bDro= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:organization:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=blHnNwm2tuwvcbyVHTsLsFNkZZPB/7DBcgQ70+SltqlvWed+ww0p/YRYPrGVUOeLjwv3EaRrxWloe3YDBBrGk8rtxF67/q/LVh0zeR3cXoWUp3NCH94Qgdq6OtnGxIKMH8C13g8pPvA6uRqOR04UV9GiNPuDzBi44nXgtqvM/s8= Received: by 10.114.154.1 with SMTP id b1mr5810598wae.1183437459604; Mon, 02 Jul 2007 21:37:39 -0700 (PDT) Received: from ?192.168.1.104? ( [71.229.200.170]) by mx.google.com with ESMTP id m26sm29243097pof.2007.07.02.21.37.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 02 Jul 2007 21:37:38 -0700 (PDT) Message-ID: <4689D291.8070107@roguewave.com> Date: Mon, 02 Jul 2007 22:37:37 -0600 From: Martin Sebor Organization: Rogue Wave Software User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20070531 Fedora/1.0.9-1.fc6 pango-text SeaMonkey/1.0.9 MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: Re: STDCXX examples fails and reasons [MSVC] References: <7BDB2168BEAEF14C98F1901FD2DE64389D67D6@epmsa009.minsk.epam.com> <467ABBBA.9030305@roguewave.com> <7BDB2168BEAEF14C98F1901FD2DE64389D6984@epmsa009.minsk.epam.com> In-Reply-To: <7BDB2168BEAEF14C98F1901FD2DE64389D6984@epmsa009.minsk.epam.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: Martin Sebor X-Virus-Checked: Checked by ClamAV on apache.org Farid Zaripov wrote: >> -----Original Message----- >> From: Martin Sebor [mailto:sebor@roguewave.com] >> Sent: Thursday, June 21, 2007 8:56 PM >> To: stdcxx-dev@incubator.apache.org >> Subject: Re: STDCXX examples fails and reasons [MSVC] > > [...] > >> time_put like a bug in our infrastructure (I assume the >> example assumes a certain time zone and it's being run in >> another). The latter could (should?) be fixed by setting >> the TZ environment variable time zone to the expected zone >> before invoking this example. > > I have updated the windows build infrastructure to set TZ environment > variable > before run examples. The proposed similar changes in unix infrastructure > below, > but I'm not sure that is correct: Why not? :) If you're not sure it's portable check out the TZ section in POSIX: http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html Any of MST7, MST07, MST+7, and MST+07 should work. If it works on the platforms you have access to (Linux and HP-UX) I say check it in and keep an eye out on failures for a few days to make sure it works everywhere else. Martin > > Index: makefile.rules > =================================================================== > --- makefile.rules (revision 549750) > +++ makefile.rules (working copy) > @@ -119,8 +119,9 @@ > PATH=$$PATH:.; > \ > TOPDIR=$(TOPDIR); > \ > TMP=$${TMP:-/tmp}/stdcxx-run-$$$$; > \ > + TZ=MST+7; > \ > export TMP; > \ > - export LD_LIBRARY_PATH PATH TMP TOPDIR; > \ > + export LD_LIBRARY_PATH PATH TMP TOPDIR TZ; > \ > trap "rm -rf $$TMP" HUP INT QUIT TERM EXIT; > \ > mkdir -p $$TMP; > \ > ./run $(RUNFLAGS) $(RUNTARGET); > \ > @@ -133,8 +134,9 @@ > PATH=$$PATH:$(LIBDIR):.; > \ > TOPDIR=$(TOPDIR); > \ > TMP=$${TMP:-/tmp}/stdcxx-run-$$$$; > \ > + TZ=MST+7; > \ > export TMP; > \ > - export LD_LIBRARY_PATH PATH TMP TOPDIR; > \ > + export LD_LIBRARY_PATH PATH TMP TOPDIR TZ; > \ > trap "rm -rf $$TMP" HUP INT QUIT TERM EXIT; > \ > mkdir -p $$TMP; > \ > ./run $(RUNFLAGS) $(RUNTARGET); > \ > > Farid. >