mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
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>
|
||||
|
||||
* tzset_r.c (_tzname): Add a comma.
|
||||
|
@ -122,7 +122,7 @@ _DEFUN (_setenv_r, (reent_ptr, name, value, rewrite),
|
||||
ENV_UNLOCK;
|
||||
|
||||
/* 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 ();
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user