Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6d8b2c92e8da6c440dc5f2436ca512656ca8e619
Ticket: 1371446fffffffffffffffffffffffffffffffff
clock-32.1 fails
User & Date: dgp on 2005-12-02 04:24:57
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    ==== clock-32.1 scan/format across the Gregorian change
    FAILED
    ==== Contents of test case:
    
        set problems {}
        set t [expr { wide(-6857395200) }]
        foreach d {       1  2 14 15 16
                   17 18 19 20 21 22 23
                   24 25 26 27 28 29 30 }  j {         245
    246 258 259 260
                261 262 263 264 265 266 267
                268 269 270 271 272 273 274 } {
            set u [format 1752-09-%02d $d]
            set s [clock format $t -format %Y-%m-%d 
    -locale en_US_roman -timezone :UTC]
            if { $s ne $u } {
                append problems "formatting $t: $s should
    be $u\n"
            }
            set v [clock scan $u -format %Y-%m-%d  -locale
    en_US_roman -timezone :UTC]
            if { $t ne $v } {
                append problems "scanning $u: $t should be
    $v\n"
            }
            set u [format 1752-%03d $j]
            set s [clock format $t -format %Y-%j  -locale
    en_US_roman -timezone :UTC]
            if { $s ne $u } {
                append problems "formatting $t: $s should
    be $u\n"
            }
            set v [clock scan $u -format %Y-%j  -locale
    en_US_roman -timezone :UTC]
            if { $t ne $v } {
                append problems "scanning $u: $t should be
    $v\n"
            }
            incr t 86400
        }
        set problems
    
    ---- Result was:
    formatting -6857395200: 1752-09-12 should be 1752-09-01
    formatting -6857395200: 1752-256 should be 1752-245
    formatting -6857308800: 1752-09-13 should be 1752-09-02
    formatting -6857308800: 1752-257 should be 1752-246
    
    ---- Result should have been (exact matching):
    
    ==== clock-32.1 FAILED
    
    
    I see this failure on 
    both Solaris 9 and Mac OSX.
    
    
  4. foundin changed to: "obsolete: 8.5a4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "06. Time Measurement"
  10. title changed to: "clock-32.1 fails"
  11. type changed to: "Bug"