incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: STDCXX examples fails and reasons [MSVC]
Date Tue, 03 Jul 2007 04:37:37 GMT
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.
> 


Mime
View raw message