Artifacts Associated With Ticket 1bedc53c8cb878f0b
Ticket change [d3aa224dd6] (rid 207992) by pooryorick on 2022-12-27 21:51:54:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
In trunk, test io-12.9, "ReadChars: multibyte chars split FAILED" does not result in an error when the test is changed so that the channel is configured with -strictencdoing 1: <code><verbatim> test io-12.9 {ReadChars: multibyte chars split} -body { set f [open $path(test1) w] fconfigure $f -translation binary puts -nonewline $f [string repeat a 9]\xC2 close $f set f [open $path(test1)] fconfigure $f -strictencoding 1 -encoding utf-8 -buffersize 10 set in [read $f] close $f scan [string index $in end] %c } -cleanup { catch {close $f} } -result 194 </verbatim></code> This is incorrect. An error should be returned. If a second [read] is added, it returns an error: <code><verbatim> test io-12.9 {ReadChars: multibyte chars split} -body { set f [open $path(test1) w] fconfigure $f -translation binary puts -nonewline $f [string repeat a 9]\xC2 close $f set f [open $path(test1)] fconfigure $f -strictencoding 1 -encoding utf-8 -buffersize 10 set in [read $f] read $f close $f scan [string index $in end] %c } -cleanup { catch {close $f} } -result 194 </verbatim></code> This is also incorrect, because [read $chan] is defined to read all characters up until the end of the channel, implying that all data on the channel has been correctly read. The first [read] should return an error. - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "25. Channel System"
- title initialized to:
synchronous [read] with -strictencoding does not produce an error on invalid input
- type initialized to: "Bug"
Ticket change [c9fcfde7d8] (rid 208062) by jan.nijtmans on 2022-12-29 23:39:48:
- assignee changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- severity changed to: "Important"
Ticket change [5cd1b947ca] (rid 208070) by pooryorick on 2022-12-30 20:48:51:
- icomment:
Report. [b8f575aa2398b0e4] was closed as a duplicate of this report. Branch [https://core.tcl-lang.org/tcl/timeline?r=py-b8f575aa23&unhide|py-b8f575aa23] is dedicated to this issue.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [3ad6928f35] (rid 208189) by pooryorick on 2023-01-16 20:33:00:
- closedate changed to: "2459961.35625825"
- closer changed to: "pooryorick"
- icomment:
Closed as duplicate of [b8f575aa2398b0e4]."Tcl 9: eof erroneously flagged with not reported encoding read error"
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
Ticket change [9a3bafa455] (rid 208197) by jan.nijtmans on 2023-01-17 08:22:02:
- closer changed to: "nobody"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "None"
- status changed to: "Pending"
Ticket change [3a53c0d261] (rid 210518) by jan.nijtmans on 2023-03-21 17:51:12:
- closedate changed to: "2460025.24389949"
- closer changed to: "jan.nijtmans"
- foundin changed to: "8.7"
- icomment: "Fixed [18437bdc82d0152c|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"