all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#13415: 24.3.50; broken set_time_zone_rule with LOCALTIME_CACHE
@ 2013-01-11 17:26 Kazuhiro Ito
  2013-01-12  1:17 ` Paul Eggert
  0 siblings, 1 reply; 2+ messages in thread
From: Kazuhiro Ito @ 2013-01-11 17:26 UTC (permalink / raw
  To: 13415

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#13415: 24.3.50; broken set_time_zone_rule with LOCALTIME_CACHE
  2013-01-11 17:26 bug#13415: 24.3.50; broken set_time_zone_rule with LOCALTIME_CACHE Kazuhiro Ito
@ 2013-01-12  1:17 ` Paul Eggert
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggert @ 2013-01-12  1:17 UTC (permalink / raw
  To: Kazuhiro Ito; +Cc: 13415-done

Thanks for the problem report and fix; I installed it
into the trunk as bzr 111492.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-12  1:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-11 17:26 bug#13415: 24.3.50; broken set_time_zone_rule with LOCALTIME_CACHE Kazuhiro Ito
2013-01-12  1:17 ` Paul Eggert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.