Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4fd8c2eec4c8689a720ba03b287ce1b31ae0818252eb9dbf1593091ce1693134
Ticket: 87b69745be15c2816574ec415dfe2c3c407cc5d6
interp creation resets encoding directory search path
User & Date: dgp on 2025-08-25 12:56:58
Changes

  1. closedate changed to: "2460913.03956347"
  2. closer changed to: "dgp"
  3. icomment:
    
    Here's a more complete log of my steps to see the failures:
    
    $ uname -a
    Linux spalt.cam.nist.gov 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
    
    $ mkdir demo-87b697
    $ cd demo-87b697/
    $ fossil open ../tcl.fr 0433b6
    ...
    $ cd unix/
    $ ./configure --disable-shared
    ...
    checking system version... (cached) Linux-5.15.0-131-generic
    ...
    checking for macher... checking for zip... /usr/bin/zip
    Found INFO Zip in environment
    checking for building with zipfs... yes
    ...
    
    $ make
    ...
    $ make tcltest
    ...
    $ make test-tcl TESTFLAGS="-file encoding.test"
    ...
    LD_LIBRARY_PATH=`pwd`:/home/dgp/lib TCLLIBPATH="/home/dgp/fossil/demo-87b697/unix/pkgs" TCL_LIBRARY="" ./tcltest /home/dgp/fossil/demo-87b697/tests/all.tcl -file encoding.test
    Tests running in interp:  /local/tmp/dgp/fossil/demo-87b697/unix/tcltest
    Tests located in:  /local/tmp/dgp/fossil/demo-87b697/tests
    Tests running in:  /local/tmp/dgp/fossil/demo-87b697/unix
    ...
    encoding.test
    
    
    ==== encoding-28.0 all encodings load FAILED
    ==== Contents of test case:
    
    	set string hello
    	foreach name [encoding names] {
    		if {$name ne "unicode"} {
    		    incr count
    		}
    		encoding convertto -profile tcl8 $name $string
    
    		# discard the cached internal representation of Tcl_Encoding
    		# Unfortunately, without this, encoding 2-1 fails.
    		llength $name
    	}
    	return $count
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: invalid encoding file "tis-620"
        while executing
    "encoding convertto -profile tcl8 $name $string"
        ("foreach" body line 5)
        invoked from within
    "foreach name [encoding names] {
    		if {$name ne "unicode"} {
    		    incr count
    		}
    		encoding convertto -profile tcl8 $name $string
    
    		# discard the cac..."
        ("uplevel" body line 3)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: TCL LOOKUP ENCODING tis-620
    ==== encoding-28.0 FAILED
    
    
    
    ==== encoding-12.7 cp864 [ecafd8611d] FAILED
    ==== Contents of test case:
    
        encoding convertfrom cp864 \xA7
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: unexpected byte sequence starting at index 0: '\xA7'
        while executing
    "encoding convertfrom cp864 \xA7"
        ("uplevel" body line 2)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: TCL ENCODING ILLEGALSEQUENCE 0
    ==== encoding-12.7 FAILED
    
    ...
    
  4. login: "dgp"
  5. mimetype: "text/plain"