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.
This commit is contained in:
parent
d693ad8449
commit
63f5d32954
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2002-12-19 Pierre Humblet <pierre.humblet@ieee.org>
|
||||||
|
|
||||||
* fhandler.cc (fhandler_base::open): Use "flags" rather than "mode"
|
* fhandler.cc (fhandler_base::open): Use "flags" rather than "mode"
|
||||||
|
@ -1451,7 +1451,9 @@ tzsetwall P((void))
|
|||||||
/* printf("TZ deduced as `%s'\n", buf); */
|
/* printf("TZ deduced as `%s'\n", buf); */
|
||||||
if (tzparse(buf, lclptr, FALSE) == 0) {
|
if (tzparse(buf, lclptr, FALSE) == 0) {
|
||||||
settzname();
|
settzname();
|
||||||
setenv("TZ", buf, 1);
|
lcl_is_set = 1;
|
||||||
|
strlcpy(lcl_TZname, buf, sizeof (lcl_TZname));
|
||||||
|
setenv("TZ", lcl_TZname, 1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user