aboutsummaryrefslogtreecommitdiff
path: root/winsup
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
parentd3dd7d36822391acdc70aed2133dbda14cdb7fed (diff)
downloadnewlib-e9ff75192a61741d7f0b3c61e04a7648b195aed5.zip
newlib-e9ff75192a61741d7f0b3c61e04a7648b195aed5.tar.gz
newlib-e9ff75192a61741d7f0b3c61e04a7648b195aed5.tar.bz2
* localtime.cc (tzsetwall): Don't set TZ.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/localtime.cc4
2 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 3a29be7..3d3ea9b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2007-08-01 Corinna Vinschen <corinna@vinschen.de>
+ * localtime.cc (tzsetwall): Don't set TZ.
+
+2007-08-01 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Drop
usage of path_conv::volser().
(fhandler_base::fstat_by_name): Ditto.
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;
}
}