Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c942d4f7aa4c9bced076e35db2b3f0456e0e6d89
Ticket: 474358ffffffffffffffffffffffffffffffffff
a patch for iso2022-jp probrems
User & Date: andreas_kupries on 2002-01-22 04:58:48
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    I applied this patch to the current state of 8.3.4 and 
    8.4cvs head. In both cases there are three encoding-related 
    tests which will fail when the testsuite is run. See below. 
    
    I am not well versed enough in this area to know if the 
    change should make the tests fail (and thus the tests have 
    to be updated) or if the failure points to a bug in the 
    patch itself.
    
    Because of this I believe that the patch as it is now is 
    not applicable. If the tests have to be changed the patch 
    should contain the updates to the testsuite.
    
    ==== encoding-11.5 LoadEncodingFile: escape file FAILED
    ==== Contents of test case:
    
        encoding convertto iso2022 \u4e4e
    
    ---- Result was:
    ESC$@8CESC(B
    ---- Result should have been:
    ESC(BESC$@8C
    ==== encoding-11.5 FAILED
    
    
    ==== encoding-13.1 LoadEscapeTable FAILED
    ==== Contents of test case:
    
        set x [encoding convertto iso2022 ab\u4e4e\u68d9g]
    
    ---- Result was:
    abESC$@8CESC$(DD%ESC(Bg
    ---- Result should have been:
    ESC(BabESC$@8CESC$(DD%ESC(Bg
    ==== encoding-13.1 FAILED
    
    ==== io-1.8 Tcl_WriteChars: WriteChars FAILED
    ==== Contents of test case:
    
        # This test written for SF bug #506297.
        #
        # Executing this test without the fix for the 
    referenced bug
        # applied to tcl will cause tcl, more specifically 
    WriteChars, to
        # go into an infinite loop.
    
        set f [open test2 w]
        fconfigure      $f -encoding iso2022-jp
        puts -nonewline $f [format %s%c [string repeat " " 4] 
    12399]
        close           $f
        contents test2
    
    ---- Result was:
        ESC$@$OESC(B
    ---- Result should have been:
    ESC(B    ESC$@$O
    ==== io-1.8 FAILED
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"