From 4b93ac1f7fc248622a13f2485c1dbc66080708b5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 11 Dec 2007 15:01:31 +0000 Subject: [PATCH] * localtime.cc (tzset): Call tzsetwall only if it hasn't been called before. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/localtime.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ced7ba263..f97f3ffe1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2007-12-11 Corinna Vinschen + + * localtime.cc (tzset): Call tzsetwall only if it hasn't been + called before. + 2007-12-07 Corinna Vinschen * include/sys/cygwin.h: Include limits.h. diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc index 1dab62793..a2f415f08 100644 --- a/winsup/cygwin/localtime.cc +++ b/winsup/cygwin/localtime.cc @@ -1476,7 +1476,8 @@ tzset P((void)) const char * name = getenv("TZ"); if (name == NULL) { - tzsetwall(); + if (!lcl_is_set) + tzsetwall(); return; } -- 2.43.5