<div dir="ltr"><div>A bug indeed. Our clue is the zic.c comment &quot;Mark which rules to do in the current year&quot; which zic is hellbent on doing even if they&#39;re duplicates. A start on a fix is the (tab munged) change below; it flags the case reported by Jon Skeet, and does not produce any false reports of errors for the files in the time zone package. It should pick up glitches other than exactly duplicated rules.<br><br></div><div>An unmunged version of the patch is attached.<br></div><div><br></div><div>    --ado<br><br>1.1<br>2959 lines<br>1.3<br>2966 lines<br>*** /tmp/,azic.c    2015-07-19 14:29:15.286318600 -0400<br>--- /tmp/,bzic.c    2015-07-19 14:29:15.391324600 -0400<br>***************<br>*** 2372,2377 ****<br>--- 2372,2384 ----<br>                          jtime == max_time)<br>                              continue;<br>                      jtime = tadd(jtime, -offset);<br>+                     if (jtime == ktime) {<br>+ eats(zp-&gt;z_filename, zp-&gt;z_linenum, rp-&gt;r_filename, rp-&gt;r_linenum);<br>+ warning(_(&quot;two rules for same instant&quot;));<br>+ rp = &amp;zp-&gt;z_rules[k];<br>+ eats(zp-&gt;z_filename, zp-&gt;z_linenum, rp-&gt;r_filename, rp-&gt;r_linenum);<br>+ error(_(&quot;two rules for same instant&quot;));<br>+                     }<br>                      if (k &lt; 0 || jtime &lt; ktime) {<br>                          k = j;<br>                          ktime = jtime;<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 19, 2015 at 1:36 PM, Paul Eggert <span dir="ltr">&lt;<a href="mailto:eggert@cs.ucla.edu" target="_blank">eggert@cs.ucla.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jon Skeet wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
if anyone can think of any good justification why an<br></span>
implementation*should*  behave like zic in this case, I&#39;d be really<br>
interested to hear it.<br>
</blockquote>
<br>
I think you&#39;ve identified a bug in zic.  Perhaps Arthur can chime in?<br>
</blockquote></div><br></div>