Subject: 24.3.50; broken set_time_zone_rule with LOCALTIME_CACHE

From: Kazuhiro Ito <[email-masked]>
Date: Fri, 11 Jan 2013 17:26:39 +0000

On trunk, the below code returns unexpected result in LOCALTIME_CACHE
defined environment.

(list
 (progn (set-time-zone-rule "GMT+0")
	(current-time-zone))
 (progn (set-time-zone-rule "GMT+0")
	(current-time-zone)))

-> ((0 "GMT") (-3600 "GMT"))

Please see the below patch.

=== modified file 'src/editfns.c'
--- src/editfns.c	2013-01-11 13:25:10 +0000
+++ src/editfns.c	2013-01-11 17:14:54 +0000
@@ -2188,6 +2188,7 @@
       xputenv (set_time_zone_rule_tz[1]);
     }
   tzset ();
+  tzvalbuf_in_environ = 0;
 #endif
 
   if (!tzstring)

-- 
Kazuhiro Ito