aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/localtime.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2007-08-01 13:26:56 +0000
committerCorinna Vinschen <corinna@vinschen.de>2007-08-01 13:26:56 +0000
commite9ff75192a61741d7f0b3c61e04a7648b195aed5 (patch)
treebf73944499e186fcb1a176b34b765489753854d6 /winsup/cygwin/localtime.cc
parentd3dd7d36822391acdc70aed2133dbda14cdb7fed (diff)
downloadnewlib-e9ff75192a61741d7f0b3c61e04a7648b195aed5.zip
newlib-e9ff75192a61741d7f0b3c61e04a7648b195aed5.tar.gz
newlib-e9ff75192a61741d7f0b3c61e04a7648b195aed5.tar.bz2
* localtime.cc (tzsetwall): Don't set TZ.
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r--winsup/cygwin/localtime.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc
index b8b1a60..1dab627 100644
--- a/winsup/cygwin/localtime.cc
+++ b/winsup/cygwin/localtime.cc
@@ -1456,7 +1456,11 @@ tzsetwall P((void))
settzname();
lcl_is_set = 1;
strlcpy(lcl_TZname, buf, sizeof (lcl_TZname));
+#if 0
+ /* Huh? POSIX doesn't mention anywhere that tzset should
+ set $TZ. That's not right. */
setenv("TZ", lcl_TZname, 1);
+#endif
return;
}
}