Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7de532c2255e5b6f35dc08dee83cd97f2e7634350ff2a5b65d98e22721675840
Ticket: 33b248619922b8781ab500cd778f177fedf3ebe8
zipfs becomes non-functional after first thread finalization
User & Date: dgp on 2023-10-16 21:46:06
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    Using Tcl's tip of core-8-branch and Thread's tip of thread-2-8-branch:
    
    $ make test-tcl TESTFLAGS='-singleproc 1 -file "chanio.test clock.test" -match "chan-io-70.1 clock-58.1" -verbose bpste'
    ...
    chanio.test
    ---- chan-io-70.1 start
    ++++ chan-io-70.1 PASSED
    clock.test
    ---- clock-58.1 start
    
    
    ==== clock-58.1 clock l10n - Japanese localisation FAILED
    ==== Contents of test case:
    
            set trouble {}
            foreach {date jdate} {
                1872-12-31 西暦1872年12月31日
                1873-01-01 明治06年01月01日
                1912-07-29 明治45年07月29日
                1912-07-30 大正01年07月30日
                1926-12-24 大正15年12月24日
                1926-12-25 昭和01年12月25日
                1989-01-07 昭和64年01月07日
                1989-01-08 平成01年01月08日
                2019-04-30 平成31年04月30日
                2019-05-01 令和01年05月01日
            } {
                set status [catch {
                    set secs [clock scan $date  -timezone +0900  -locale ja_JP  -format %Y-%m-%d]
                    set jda [clock format $secs  -timezone +0900  -locale ja_JP  -format %Ex]
                } result]
                if {$status != 0} {
                    append trouble \n $date " gives error " $result
                } elseif {$jda ne $jdate} {
                    append trouble \n $date " converts to "  [backslashify $jda] " and should be "  [backslashify $jdate]
                }
                # There is no code for scanning dates on the locale's
                # alternative calendar.
                continue
                set status [catch {
                    set secs [clock scan $jdate  -timezone +0900  -locale ja_JP  -format %Ex]
                    set da [clock format $secs  -timezone +0900  -locale ja_JP  -format %Y-%m-%d]
                } result]
                if {$status != 0} {
                    append trouble \n [backslashify $jdate] " gives error " $result
                } elseif {$da ne $date} {
                    append trouble \n [backslashify $jdate] " converts to "  $da " and should be " $date
                }
            }
            set trouble
        
    ---- Result was:
    \x0A1872-12-31 converts to 12/31/1872 and should be \u897f\u66a61872\u5e7412\u670831\u65e5\x0A1873-01-01 converts to 01/01/1873 and should be \u660e\u6cbb06\u5e7401\u670801\u65e5\x0A1912-07-29 converts to 07/29/1912 and should be \u660e\u6cbb45\u5e7407\u670829\u65e5\x0A1912-07-30 converts to 07/30/1912 and should be \u5927\u6b6301\u5e7407\u670830\u65e5\x0A1926-12-24 converts to 12/24/1926 and should be \u5927\u6b6315\u5e7412\u670824\u65e5\x0A1926-12-25 converts to 12/25/1926 and should be \u662d\u548c01\u5e7412\u670825\u65e5\x0A1989-01-07 converts to 01/07/1989 and should be \u662d\u548c64\u5e7401\u670807\u65e5\x0A1989-01-08 converts to 01/08/1989 and should be \u5e73\u621001\u5e7401\u670808\u65e5\x0A2019-04-30 converts to 04/30/2019 and should be \u5e73\u621031\u5e7404\u670830\u65e5\x0A2019-05-01 converts to 05/01/2019 and should be \u4ee4\u548c01\u5e7405\u670801\u65e5
    ---- Result should have been (exact matching):
    
    ==== clock-58.1 FAILED
    
  5. foundin changed to: "core-8-branch"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "dgp"
  14. subsystem changed to: "25. Channel System"
  15. title changed to:
    clock-58.1 fails when Thread and chan-io-70.1 interfere
    
  16. type changed to: "Bug"