Skip to content
Tcl Source Code History Of Ticket 922848ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 922848ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 922848ffffffffffffffffffffffffffffffffff

  1. Ticket change [7324e4b759] (rid 104994) by david_glessner on 2004-03-25 00:44:52:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Some clock.test tests are failing on LynxOS 3.1.0 
      071000-F PowerPC.
      
      ---- Result was:
      CSTPST
      ---- Result should have been (exact matching):
      GMTPST
      ==== clock-3.2 FAILED
      
      ---- Result was:
      CSTCST
      ---- Result should have been (exact matching):
      GMTGMT
      ==== clock-3.4 FAILED
      
      These failures appear to be caused by LynxOS not 
      performing as Tcl expects when the TZ environment 
      variable is set to "GMT".  Thes failures go away when 
      TZ is set to "GMT0" instead of "GMT" in 
      generic/tclClock.c.
      
      From reading the Single Unix Specification Version 3, 
      "GMT0" is correct and "GMT" is not.  It says that, "The 
      offset following std shall be required."
      
      
      There were failures in clock-4.6, clock-4.16, 
      clock-4.17, and clock-4.18 where the times were ahead 
      by one hour.
      
      These failures appear to be caused by using the 
      tz.tz_dsttime as a boolean in unix/tclUnixTime.c.  This 
      structure member indicates the algorithm to be used for 
      the daylight saving time method.  The value of 1 
      indicates USA, and this causes an additional 60 minutes 
      to be added.
      
      I've included a patch that appears to work for me.  It 
      assumes the presence of the previous patch I submitted.
      
      I wonder if the use of tz.tz_dsttime is correct for any 
      platform?
      
      
      FYI, clock-4.3 also fails, but it's due to a strftime 
      bug in the LynxOS libc.a.
      
          clock format [clock scan "14 Feb 92" -gmt true]  
      -format {%m/%d/%y %I:%M:%S %p} -gmt true
      
      ---- Result was:
      02/14/92 00:00:00 AM
      ---- Result should have been (exact matching):
      02/14/92 12:00:00 AM
      ==== clock-4.3 FAILED
      
      I guess configuration could check for a buggy 
      conversion and use a workaround (e.g. 
      compat/strftime.c), but LynuxWorks has a corrected 
      ctime.as.o that presumably works too.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "david_glessner"
    9. subsystem initialized to: "None"
    10. title initialized to: "clock.test failures on LynxOS 3.1.0"
    11. type initialized to: "Bug"
  2. Ticket change [ae1db63135] (rid 101585) by david_glessner on 2004-03-25 07:44:52:

    1. icomment:
      
      
      File Added - 81268: tcl8.4.6-local.patch-02
      
      
      
    2. login: "david_glessner"
    3. mimetype: "text/plain"
    4. username: "david_glessner"
  3. Add attachment "tcl8.4.6-local.patch-02" [881729bf77] (rid 131810) by david_glessner on 2004-03-25 07:44:52.

  4. Ticket change [3306be4ea5] (rid 93719) by dkf on 2004-03-25 18:35:35:

    1. assignee changed to: "kennykb"
    2. subsystem changed to: "06. Time Measurement"
  5. Ticket change [c31149f485] (rid 111592) by kennykb on 2004-05-15 04:46:56:

    1. closedate changed to: "2004-05-14T21:46:56"
    2. closer changed to: "kennykb"
    3. icomment:
      Logged In: YES 
      user_id=99768
      
      Thanks for the bug report.  Put in changes that avoid using
      the bogus gettimeofday() method to determine the time zone.
      Also adopted the suggested 'GMT0' in place of GMT -
      and fixed a related bug that caused tzset() not to be called
      when env(TZ) changed.  I'd appreciate it if you could retest
      either against the HEAD or against the tip of core-8-4-branch,
      because I merged several other fixes into the commit, so
      the code does NOT match your patch.
      
      
    4. login: "kennykb"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "kennykb"