Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2bdc3ada1f841309e066501013d0c7515b0471d1
Ticket: 524663ffffffffffffffffffffffffffffffffff
Change output encoding escapes for iso2022
User & Date: hobbs on 2002-03-02 03:23:47
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Keiichi Takahashi (bitwalk -at- jcom.home.ne dot jp) 
    noted that output of iso2022 strings is not 
    satisfactory.  He made the attached patch.  Against 
    the test suite, this breaks the following tests, plus 
    a similar one in io.test:
    
    test encoding-11.5 {LoadEncodingFile: escape file} {
        encoding convertto iso2022 \u4e4e
    } "\x1b(B\x1b$@8C"
    
    test encoding-13.1 {LoadEscapeTable} {
        set x [encoding convertto iso2022 ab\u4e4e\u68d9g]
    } "\x1b(Bab\x1b$@8C\x1b$\(DD%\x1b(Bg"
    
    What is does is change the output result such that the 
    initial \x1b(B escape for iso8859-1 doesn't start the 
    string, but rather ends it.
    
    I'm not sure that this is correct over larger tests 
    and multiple lines, but it may be.  This needs a bit 
    more commenting before applying.
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "hobbs"
  9. subsystem changed to: "44. UTF-8 Strings"
  10. title changed to: "Change output encoding flags for iso2022"
  11. type changed to: "Bug"