Skip to content
Tcl Source Code History Of Ticket 3518851fffffffff
Login

History Of Ticket 3518851fffffffff

Artifacts Associated With Ticket 3518851fffffffff

  1. Ticket change [9f95ec61cd] (rid 96663) by bovineone on 2012-04-17 16:52:42:

    1. assignee initialized to: "kennykb"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Because the built-in Tcl timezone definitions are frequently lagging current updates, we want to rely on the OS zoneinfo files instead.  However, the internal proc ::tcl::clock::ReadZoneinfoFile (located in library/clock.tcl) seems unable to parse the :Africa/Windhoek timezone Olsen file that is a part of the zoneinfo-2012.c distribution.
      
      To replicate this condition on FreeBSD 8.2, do the following:
      
      1) cd /usr/ports/misc/zoneinfo && make install
      2) mv /usr/local/lib/tcl8.5/tzdata /usr/local/lib/tcl8.5/tzdata-OFFLINE
      3) echo "clock format [clock seconds] -timezone :Africa/Windhoek" | /usr/local/bin/tclsh8.5
      
      It will emit 'time zone ":Africa/Windhoek" not found' because an error was caught during ReadZoneinfoFile.  All other Olsen files that I've tried appear to be parsed fine.
      
      By using TclX's cmdtrace, I've found that the line in ReadZoneinfoFile that is raising an error is:
      
      key "5" not known in dictionary
      while evaluating {dict get {0 LMT 4 SWAT 9 SAST 14 CAT 18 WAST 23 {}} 5}
      
      That corresponds to the line in clock.tcl that reads:
      
              set abbrev [dict get $abbrevs $abbrInd]
      
      Can someone confirm whether the Africa/Windhoek zonefile is corrupt, or is the clock.tcl making an incorrect assumption about the file format?
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "bovineone"
    10. subsystem initialized to: "06. Time Measurement"
    11. title initialized to: "Unable to parse Africa/Windhoek Olsen time zone"
    12. type initialized to: "Bug"
  2. Add attachment "clock-tcl-trace.txt" [7f1a869820] (rid 97519) by bovineone on 2012-04-17 23:52:43.

  3. Ticket change [b6a9208e32] (rid 125461) by bovineone on 2012-04-17 23:52:43:

    1. icomment:
      
      
      File Added - 441477: clock-tcl-trace.txt
      
      
      
    2. login: "bovineone"
    3. mimetype: "text/plain"
    4. username: "bovineone"
  4. Ticket change [657fce2542] (rid 102559) by bovineone on 2012-04-17 23:54:43:

    1. icomment:
      For reference, the Africa/Windhoek zonefile has this information:
      
      $ ls -l /usr/share/zoneinfo/Africa/Windhoek
      -r--r--r--  1 root  wheel  1556 Apr  9 10:16 /usr/share/zoneinfo/Africa/Windhoek
      
      $ md5 /usr/share/zoneinfo/Africa/Windhoek
      MD5 (/usr/share/zoneinfo/Africa/Windhoek) = 2497beb897d0df019d88cb8fca24f0fb
      
      
      
    2. login: "bovineone"
    3. mimetype: "text/plain"
    4. username: "bovineone"
  5. Ticket change [4c4a48f218] (rid 126860) by kennykb on 2012-04-18 19:54:51:

    1. closedate changed to: "2012-04-18T12:54:51"
    2. closer changed to: "kennykb"
    3. icomment:
      
      
      allow_comments - 1
      
      The Windhoek bug it tclZIC was fixed over a year ago; see the commit at http://core.tcl.tk/tcl/info/6ae7178df2
      
      As of today, the Fossil trunk and the tip of the core-8-5-branch contain tzdata2012c (admittedly, this is a couple of weeks late, sorry!) So Casablanca, Damascus, Gaza, Hebron and Port-au-Prince are all up to date.
      
      I recommend that if you need a tzdata change, you first check the Fossil repository to see if it's there.  Tcl *releases* may lag tzdata by a significant amount (we don't try to qualify a Tcl release every time some legislature, somewhere, messes with the clock), but we do try to keep the code repository up to date.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Works For Me"
    7. status changed to: "Closed"
    8. username: "kennykb"
  6. Ticket change [16a530b9b7] (rid 124750) by kennykb on 2012-04-18 19:59:30:

    1. icomment:
      Oops, sorry, had the wrong commit for Windhoek; it was actually http://core.tcl.tk/tcl/info/dc71499520 that fixed the bug.  In any case, it's fixed.
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. username: "kennykb"
  7. Ticket change [e11d944361] (rid 87392) by kennykb on 2012-04-18 20:00:06:

    1. icomment:
      Duplicate of 3470928
      
      
    2. login: "kennykb"
    3. mimetype: "text/plain"
    4. resolution changed to: "Duplicate"
    5. username: "kennykb"