Overview
| Artifact ID: | 639d5339b70d1f94f7d91b9e1222d8b6111f8d9e |
|---|---|
| Ticket: | 219314ffffffffffffffffffffffffffffffffff
tcl8.2.2 can not handle iso2022-jp strings |
| User & Date: | andreas_kupries on 2002-01-22 04:57:56 |
Changes
- 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 - login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"