Artifacts Associated With Ticket 1355b9a874
Ticket change [e4d80cec19] (rid 222153) by dgp on 2024-02-07 17:10:36:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
==== chan-io-7.3 FilterInputBytes: split up character at EOF FAILED ==== Contents of test case: set f [open $path(test1) w] chan configure $f -encoding binary chan puts -nonewline $f "1234567890123\x82\x4F\x82\x50\x82" chan close $f set f [open $path(test1)] chan configure $f -encoding shiftjis -profile tcl8 lappend x [chan gets $f line] $line lappend x [chan tell $f] [testchannel inputbuffered $f] [chan eof $f] lappend x [chan gets $f line] $line ---- Result was: 16 1234567890123\uFF10\uFF11\u201A 18 0 1 -1 {} ---- Result should have been (exact matching): 16 1234567890123\uFF10\uFF11\x82 18 0 1 -1 {} ==== chan-io-7.3 FAILED ==== io-7.3 FilterInputBytes: split up character at EOF FAILED ==== Contents of test case: set f [open $path(test1) w] fconfigure $f -encoding binary puts -nonewline $f "1234567890123\x82\x4F\x82\x50\x82" close $f set f [open $path(test1)] fconfigure $f -encoding shiftjis -profile tcl8 set x [list [gets $f line] $line] lappend x [tell $f] [testchannel inputbuffered $f] [eof $f] lappend x [gets $f line] $line close $f set x ---- Result was: 16 1234567890123\uFF10\uFF11\u201A 18 0 1 -1 {} ---- Result should have been (exact matching): 16 1234567890123\uFF10\uFF11\x82 18 0 1 -1 {} ==== io-7.3 FAILED ==== TableToUtf-bug-5be203d6ca Bug 5be203d6ca - truncated prefix in table encoding FAILED ==== Contents of test case: set src \x82\x4f\x82\x50\x82 lassign [testencoding Tcl_ExternalToUtf shiftjis $src {start} 0 16 srcRead dstWritten charsWritten] buf set result [list [testencoding Tcl_ExternalToUtf shiftjis $src {start} 0 16 srcRead dstWritten charsWritten] $srcRead $dstWritten $charsWritten] lappend result {*}[list [testencoding Tcl_ExternalToUtf shiftjis [string range $src $srcRead end] {end} 0 10 srcRead dstWritten charsWritten] $srcRead $dstWritten $charsWritten] ---- Result was: {multibyte 0 \xEF\xBC\x90\xEF\xBC\x91\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF} 4 6 2 {ok 0 \xE2\x80\x9A\x00\xFF\xFF\xFF\xFF\xFF\xFF} 1 3 1 ---- Result should have been (exact matching): {multibyte 0 \xEF\xBC\x90\xEF\xBC\x91\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF} 4 6 2 {ok 0 \xC2\x82\x00\xFF\xFF\xFF\xFF\xFF\xFF\xFF} 1 2 1 ==== TableToUtf-bug-5be203d6ca FAILED - foundin initialized to: "8.7 and trunk"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "10. Objects"
- title initialized to: "new test failures"
- type initialized to: "Bug"
Ticket change [3e8baec1b7] (rid 222167) by jan.nijtmans on 2024-02-07 20:54:45:
- icomment:
It looks like the 'ascii' testcase fixes had a bad effect on the shiftjis encoding, which was not expected. Reverted now, back to the drawing table ....
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [d78e8cfb12] (rid 222168) by jan.nijtmans on 2024-02-07 21:01:44:
- icomment:
Using cp1252 as fallback is reasonable for ascii-based encodings, it is not reasonable for shiftjis (clearly indicated by this testcase). So, what's the best option? Don't use cp1252 as fallback for ascii (as in 8.6)? In 9.0 we have -profile strict as default, so the benefit of using cp1252 as fallback isn't that important any more. So, we could simply decide not to use the cp1252 fallback for table-encodings. Then the current behavior of the 'ascii' encoding is fine.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [fff5ba50a4] (rid 222169) by jan.nijtmans on 2024-02-07 21:02:13:
- assignee changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
Ticket change [558c8c2623] (rid 222184) by jan.nijtmans on 2024-02-08 13:22:42:
- closedate changed to: "2460349.0574375"
- closer changed to: "jan.nijtmans"
- icomment:
Found a solution: Fallback to cp1252 should _never_ happen for prefix-bytes in table encodings. Using that, all test-cases pass.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"