Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8ddc9509c56fd48bf91ac34213f723993d4d91f4
Ticket: 1893053fffffffffffffffffffffffffffffffff
encoding-11.1 fails with -singleproc 1
User & Date: dgp on 2008-02-13 20:02:54
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    make test TESTFLAGS="-singleproc 1 -file 'chanio.test encoding.test'"
    
    leads to:
    
    ==== encoding-11.1 LoadEncodingFile: unknown encoding FAILED
    ==== Contents of test case:
    
        set system [encoding system]
        set path [encoding dirs]
        encoding system iso8859-1
        encoding dirs {}
        set x [list [catch {encoding convertto jis0208 \u4e4e} msg] $msg]
        encoding dirs $path
        encoding system $system
        lappend x [encoding convertto jis0208 \u4e4e]
    
    ---- Result was:
    0 8C 8C
    ---- Result should have been (exact matching):
    1 {unknown encoding "jis0208"} 8C
    ==== encoding-11.1 FAILED
    
    
    The problem is that encoding-11.1 assumes
    the jis0208 encoding has not been loaded,
    while the tests chan-io-3.* make use of
    the encoding, so when both test files run
    in a common executable, the assumption
    is false.  The encoding has already been
    loaded for sake of those prior tests.
    
    This seems to mostly be a flaw in encoding-11.1
    relying on a precondition it does not confirm.
    To a lesser extent it can be seen as a failure
    of chanio.test to clean up after itself.
    
  4. foundin changed to: "obsolete: 8.5.1"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "10. Objects"
  11. title changed to: "encoding-11.1 fails with -singleproc 1"
  12. type changed to: "Bug"