From 63f5d32954efc99e07ef4d716d71ce4e92b1e336 Mon Sep 17 00:00:00 2001 From: Pierre Humblet Date: Fri, 20 Dec 2002 03:40:00 +0000 Subject: [PATCH] 2002-12-19 Pierre Humblet * localtime.cc (tzsetwall): Set lcl_is_set and lcl_TZname in the Cygwin specific part of the routine. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/localtime.cc | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0fd925de9..648c038f1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-12-19 Pierre Humblet + + * localtime.cc (tzsetwall): Set lcl_is_set and lcl_TZname + in the Cygwin specific part of the routine. + 2002-12-19 Pierre Humblet * fhandler.cc (fhandler_base::open): Use "flags" rather than "mode" diff --git a/winsup/cygwin/localtime.cc b/winsup/cygwin/localtime.cc index 3000eaffd..3e74667fe 100644 --- a/winsup/cygwin/localtime.cc +++ b/winsup/cygwin/localtime.cc @@ -1451,7 +1451,9 @@ tzsetwall P((void)) /* printf("TZ deduced as `%s'\n", buf); */ if (tzparse(buf, lclptr, FALSE) == 0) { settzname(); - setenv("TZ", buf, 1); + lcl_is_set = 1; + strlcpy(lcl_TZname, buf, sizeof (lcl_TZname)); + setenv("TZ", lcl_TZname, 1); return; } }