2005-01-19 Shaun Jackman <sjackman@gmail.com>
* libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ environment variable is set.
This commit is contained in:
parent
1a0b5b8e6c
commit
524298079c
|
@ -1,3 +1,8 @@
|
||||||
|
2005-01-19 Shaun Jackman <sjackman@gmail.com>
|
||||||
|
|
||||||
|
* libc/stdlib/setenv_r.c (_setenv_r): Call tzset() if the TZ
|
||||||
|
environment variable is set.
|
||||||
|
|
||||||
2005-01-19 Shaun Jackman <sjackman@gmail.com>
|
2005-01-19 Shaun Jackman <sjackman@gmail.com>
|
||||||
|
|
||||||
* tzset_r.c (_tzname): Add a comma.
|
* tzset_r.c (_tzname): Add a comma.
|
||||||
|
|
|
@ -122,7 +122,7 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
|
||||||
ENV_UNLOCK;
|
ENV_UNLOCK;
|
||||||
|
|
||||||
/* if we are setting the TZ environment variable, update timezone info */
|
/* if we are setting the TZ environment variable, update timezone info */
|
||||||
if (strcmp (name, "TZ") == 0)
|
if (strncmp ((*p_environ)[offset], "TZ=", 3) == 0)
|
||||||
tzset ();
|
tzset ();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue