Fix bug with set-time-zone-rule and LOCALTIME_CACHE.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jan 2013 01:15:06 +0000 (17:15 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 12 Jan 2013 01:15:06 +0000 (17:15 -0800)
* editfns.c (set_time_zone_rule) [LOCALTIME_CACHE]:
Clear tzvalbuf_in_environ if this workaround is in effect.
Problem and fix reported by Kazuhiro Ito.

Fixes: debbugs:13415

src/ChangeLog
src/editfns.c

index 01862b6..2481177 100644 (file)
@@ -1,3 +1,10 @@
+2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Fix bug with set-time-zone-rule and LOCALTIME_CACHE (Bug#13415).
+       * editfns.c (set_time_zone_rule) [LOCALTIME_CACHE]:
+       Clear tzvalbuf_in_environ if this workaround is in effect.
+       Problem and fix reported by Kazuhiro Ito.
+
 2013-01-11  Aaron S. Hawley  <Aaron.Hawley@vtinfo.com>
 
        * insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
index 64269ba..bf19acb 100644 (file)
@@ -2188,6 +2188,7 @@ set_time_zone_rule (const char *tzstring)
       xputenv (set_time_zone_rule_tz[1]);
     }
   tzset ();
+  tzvalbuf_in_environ = 0;
 #endif
 
   if (!tzstring)