Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5695264a0f64009a2f900bfecd1d751103b89d29
Ticket: 549610ffffffffffffffffffffffffffffffffff
encoding.test fails with space in dir
User & Date: kennykb on 2002-04-27 22:25:42
Changes

  1. assignee changed to: "msofer"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    If [info nameof] contains a space, two tests in
    encoding.test fail.  The fault is in the test suite
    and not the encoding system.
    
    The attached patch fixes it.
    
    ==== encoding-24.1 EscapeFreeProc on open channels FAILED
    ==== Contents of test case:
    
        # Bug #524674 input
        set f [open iso2022.tcl w]
        puts $f {
    set f [open iso2022.txt]
    fconfigure $f -encoding iso2022-jp
    gets $f
        }
        close $f
        exec [list $::tcltest::tcltest] iso2022.tcl
    
    ---- Result was:
    couldn't execute "{C:\Documents and Settings\kevin\My
    Documents\SourceForge\tcl\win\Release\tcltest.exe}": no
    such file or directory
    ---- Result should have been (exact matching):
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== encoding-24.1 FAILED
    
    
    ==== encoding-24.2 EscapeFreeProc on open channels FAILED
    ==== Contents of test case:
    
        # Bug #524674 output
        set f [open iso2022.tcl w]
        puts $f {
    fconfigure stdout -encoding iso2022-jp
    puts ab\u4e4e\u68d9g
    exit
        }
        close $f
        viewable [exec [list $::tcltest::tcltest] iso2022.tcl]
    
    ---- Result was:
    couldn't execute "{C:\Documents and Settings\kevin\My
    Documents\SourceForge\tcl\win\Release\tcltest.exe}": no
    such file or directory
    ---- Result should have been (exact matching):
    ab$B8C$(DD%(Bg (ab\u001b$B8C\u001b$(DD%\u001b(Bg)
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ==== encoding-24.2 FAILED
    
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "kennykb"
  9. subsystem changed to: "10. Objects"
  10. title changed to: "encoding.test fails with space in dir"
  11. type changed to: "Bug"