Farid Zaripov
Fri, 22 Jun 2007 10:05:01 -0700
> -----Original Message----- > From: Martin Sebor [EMAIL PROTECTED] > 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.