Skip to content
Tcl Source Code History Of Ticket 3470928
Login

History Of Ticket 3470928

Artifacts Associated With Ticket 3470928

  1. Ticket change [b2126aa8ae] (rid 98273) by diffur on 2012-01-08 07:33:10:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      % clock format [clock seconds] -format {(%A) %d %B %Y %T %Z(UTC%z)} -timezone Africa/Windhoek
      time zone Africa/Windhoek not found
      
      % clock format [clock seconds] -format {(%A) %d %B %Y %T %Z(UTC%z)} -timezone :Africa/Windhoek
      time zone ":Africa/Windhoek" not found
      
      % file exists /usr/share/zoneinfo/Africa/Windhoek
      1
      
      What caused this behavior?
      
    4. foundin initialized to: "obsolete: 8.5.11"
    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: "diffur"
    10. subsystem initialized to: "16. Commands A-H"
    11. title initialized to: "clock format"
    12. type initialized to: "Bug"
  2. Ticket change [516fff8464] (rid 126142) by diffur on 2012-01-08 14:34:26:

    1. priority changed to: "9 Immediate"
  3. Ticket change [aa74b26446] (rid 100931) by diffur on 2012-01-08 14:35:28:

    1. priority changed to: "5 Medium"
  4. Ticket change [8a2946ddf9] (rid 127349) by diffur on 2012-01-08 14:43:08:

    1. icomment:
      $ tzselect
      Please identify a location so that time zone rules can be set correctly.
      Please select a continent or ocean.
       1) Africa
       2) Americas
       3) Antarctica
       4) Arctic Ocean
       5) Asia
       6) Atlantic Ocean
       7) Australia
       8) Europe
       9) Indian Ocean
      10) Pacific Ocean
      11) none - I want to specify the time zone using the Posix TZ format.
      #? 1
      Please select a country.
       1) Algeria  18) Gabon    35) Rwanda
       2) Angola  19) Gambia    36) Sao Tome & Principe
       3) Benin  20) Ghana    37) Senegal
       4) Botswana  21) Guinea    38) Sierra Leone
       5) Burkina Faso  22) Guinea-Bissau    39) Somalia
       6) Burundi  23) Kenya    40) South Africa
       7) Cameroon  24) Lesotho    41) South Sudan
       8) Central African Rep.  25) Liberia    42) Spain
       9) Chad  26) Libya    43) Sudan
      10) Congo (Dem. Rep.)  27) Malawi    44) Swaziland
      11) Congo (Rep.)  28) Mali    45) Tanzania
      12) Cote d'Ivoire  29) Mauritania    46) Togo
      13) Djibouti  30) Morocco    47) Tunisia
      14) Egypt  31) Mozambique    48) Uganda
      15) Equatorial Guinea  32) Namibia    49) Western Sahara
      16) Eritrea  33) Niger    50) Zambia
      17) Ethiopia  34) Nigeria    51) Zimbabwe
      #? 32
      
      The following information has been given:
      
      Namibia
      
      Therefore TZ='Africa/Windhoek' will be used.
      Local time is now:Вс. янв.  8 09:42:10 WAST 2012.
      Universal Time is now:Вс. янв.  8 07:42:10 UTC 2012.
      Is the above information OK?
      1) Yes
      2) No
      #?
      
      
    2. login: "diffur"
    3. mimetype: "text/plain"
    4. username: "diffur"
  5. Ticket change [13d13e55cd] (rid 124284) by ferrieux on 2012-01-08 17:08:34:

    1. closedate changed to: "2012-01-08T10:08:34"
    2. closer changed to: "ferrieux"
    3. resolution changed to: "Works For Me"
    4. status changed to: "Pending"
  6. Ticket change [d74a6976d4] (rid 123953) by ferrieux on 2012-01-08 17:09:50:

    1. icomment:
      Works for me, on both 8.5 and 8.6 Heads. Since 'fossil finfo library/tzdata/Africa/Windhoek' shows no change since 2009, I'd bet you have a Tcl installation problem.
      What does [info library] return ?
      What files do you have under [info library]/tzdata ?
      Is Africa/Windhoek in there ?
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  7. Ticket change [4527b92b71] (rid 116835) by diffur on 2012-01-08 18:19:08:

    1. icomment:
      % info library
      /usr/lib/tcl8.5
      
      no directory /usr/lib/tcl8.5/tzdata
      TCL use files from directory /usr/share/zoneinfo
      
      $ ls /usr/share/zoneinfo/Africa/Windhoek
      /usr/share/zoneinfo/Africa/Windhoek
      
      
      I use Arch Linux. But the problem is and on other OS for example Debian. This is not a problem of installation. Since the file /usr/share/zoneinfo/iso3166.tab contains 414 timezones. The only problem with Africa/Windhoek
      
      
    2. login: "diffur"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "diffur"
  8. Ticket change [a31fe211aa] (rid 110004) by ferrieux on 2012-01-08 23:19:40:

    1. icomment:
      As it turns out, the code in clock.tcl always tries [info library]/tzdata before going to the system-provided zoneinfo files:
      
      [catch {
          LoadTimeZoneFile [string range $timezone 1 end]
      }] && [catch {
          LoadZoneinfoFile [string range $timezone 1 end]
      }]
      
      The idea, then, is that tzdata guarantee a good coverage, and leave it to the local system for extras.
      Hence I think it is a dubious move from a distribution packager to omit the tzdata dir (which is part of the Tcl sources), since the local system may have holes, as seems to be your case.
      
      For us to be able to warn the packagers, please be more precise in your description of what distros have the problem, that was unclear; in the meantime, a quick fix is to copy the tzdata dir from the source distribution into your /usr/lib/tcl8.5.
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  9. Ticket change [05b330e77b] (rid 89108) by ferrieux on 2012-01-09 01:28:21:

    1. assignee changed to: "kennykb"
  10. Ticket change [9b2be3ec83] (rid 111082) by diffur on 2012-01-09 02:32:19:

    1. icomment:
      TCL recompiled with --with-tzdata. But there were some problems with time zones
      
      
      % clock format [clock seconds] -format {%A, %d %B %Y %T UTC%z (%Z)} -timezone Europe/Kiev
      Sunday, 08 January 2012 22:17:01 UTC+0300 (FET)
      
      http://twiki.org/cgi-bin/xtra/tzdate?tz=Europe/Kiev
      Date&time: Sun, 08 Jan 2012 21:17:01 +0200 (EET)
      
      also with: Europe/Uzhgorod Europe/Zaporozhye Europe/Simferopol
      
      % clock format [clock seconds] -format {%A, %d %B %Y %T UTC%z (%Z)} -timezone Asia/Macau
      Monday, 09 January 2012 03:29:38 UTC+0800 (MOT)
      
      http://twiki.org/cgi-bin/xtra/tzdate?tz=Asia/Macau
      Date&time: Mon, 09 Jan 2012 03:29:38 +0800 (CST)
      
      Why is that?
      
      
      
      
      
      
    2. login: "diffur"
    3. mimetype: "text/plain"
    4. username: "diffur"
  11. Ticket change [fe13950e09] (rid 108521) by kennykb on 2012-01-09 03:52:22:

    1. closedate changed to: "2012-01-08T20:52:22"
    2. closer changed to: "kennykb"
    3. icomment:
      
      
      allow_comments - 1
      
      Tcl's zoneinfo reader had a problem with the Windhoek data file. There is a very strange sort-of-optimization where two timezone abbreviations can use the same bytes of the file if one is a proper suffix of another, and Tcl wasn't prepared to handle that case. Fixed now.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"