OSDN Git Service

2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>
authorphumblet <phumblet>
Fri, 20 Dec 2002 03:39:59 +0000 (03:39 +0000)
committerphumblet <phumblet>
Fri, 20 Dec 2002 03:39:59 +0000 (03:39 +0000)
        * localtime.cc (tzsetwall): Set lcl_is_set and lcl_TZname
        in the Cygwin specific part of the routine.

winsup/cygwin/ChangeLog
winsup/cygwin/localtime.cc

index 0fd925d..648c038 100644 (file)
@@ -1,5 +1,10 @@
 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.
+
+2002-12-19  Pierre Humblet <pierre.humblet@ieee.org>
+
         * fhandler.cc (fhandler_base::open): Use "flags" rather than "mode"
        in Win9X directory code.
 
index 3000eaf..3e74667 100644 (file)
@@ -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;
            }
        }