summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/localtime.cc
diff options
context:
space:
mode:
authorPierre Humblet <phumblet@phumblet.no-ip.org>2002-12-20 03:40:00 +0000
committerPierre Humblet <phumblet@phumblet.no-ip.org>2002-12-20 03:40:00 +0000
commit63f5d32954efc99e07ef4d716d71ce4e92b1e336 (patch)
tree31a976de115277c2a820e2b530ecde5b942daa35 /winsup/cygwin/localtime.cc
parentd693ad844979b8f5596dde99a0cbec070af73683 (diff)
downloadcygnal-63f5d32954efc99e07ef4d716d71ce4e92b1e336.tar.gz
cygnal-63f5d32954efc99e07ef4d716d71ce4e92b1e336.tar.bz2
cygnal-63f5d32954efc99e07ef4d716d71ce4e92b1e336.zip
2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>
* localtime.cc (tzsetwall): Set lcl_is_set and lcl_TZname in the Cygwin specific part of the routine.
Diffstat (limited to 'winsup/cygwin/localtime.cc')
-rw-r--r--winsup/cygwin/localtime.cc4
1 files changed, 3 insertions, 1 deletions
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;
}
}