GNU bug report logs - #13415
24.3.50; broken set_time_zone_rule with LOCALTIME_CACHE

Previous Next

Package: emacs;

Reported by: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>

Date: Fri, 11 Jan 2013 17:28:02 UTC

Severity: normal

Found in version 24.3.50

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kazuhiro Ito <kzhr <at> d1.dion.ne.jp>
To: 13415 <at> debbugs.gnu.org
Subject: bug#13415: 24.3.50; broken set_time_zone_rule with LOCALTIME_CACHE
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




This bug report was last modified 12 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.