Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Change output encoding escapes for iso2022

Closed / Duplicate524663ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-03-02 03:23:47
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.
hobbsplain2002-03-02 10:23:47
File Added - 18690: encoding.patch
hobbs Ticket [524663ffff]: 1 change [History diff]2002-03-02 10:24:10
hobbsplain2002-03-02 10:40:07
Logged In: YES 
user_id=72656

This info is really a dup of patch 474358

https://sourceforge.net/tracker/index.php?
func=detail&aid=474358&group_id=10894&atid=310894
Log in (anonymous is fine) to add a comment.

Attachments: