stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Farid Zaripov" <Farid_Zari...@epam.com>
Subject RE: STDCXX examples fails and reasons [MSVC]
Date Fri, 22 Jun 2007 16:30:20 GMT
> -----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:

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