Artifacts Associated With Ticket eabcbd08274f2d22
Ticket change [08ca84a852] (rid 213107) by pooryorick on 2023-04-16 23:02:06:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
In the script below, after the first [read] returns an encoding error, the channel is reconfiguredi to <code>-encoding iso8859-1</code>, and the subsequent [read] should return character <code>\x81</code>, but instead it repeats the error: <blockquote><code><verbatim> set res {} set chan [file tempfile] fconfigure $chan -encoding binary # \x81 is invalid in utf-8. -eofchar is not detected, because it comes later. puts -nonewline $chan A\x81\x1A flush $chan seek $chan 0 fconfigure $chan -encoding utf-8 -buffering none -eofchar \x1A \ -translation lf -profile strict catch {read $chan} cres puts $cres ;#-> error reading "file*": invalid or incomplete multibyte or wide character puts [list eof [eof $chan]] ;#-> eof 1 puts [list position [tell $chan]] ;#-> position 1 chan configure $chan -encoding iso8859-1 catch {read $chan} cres puts $cres] ;#-> error reading "file*": invalid or incomplete multibyte or wide character </verbatim></code></blockquote> - is_private initialized to: "0"
- login: "pooryorick"
- priority initialized to: "5 Medium"
- private_contact initialized to: "2b2275eab1118e1fab0016cf1c5702893c6af86c"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "pooryorick"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
[read] error persists on channel with strict encoding after encoding is changed to binary
- type initialized to: "Bug"
Ticket change [9c0bb685db] (rid 213115) by pooryorick on 2023-04-16 23:11:36:
- icomment: "Fixed in [3fa3d48874]."
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
Ticket change [53b75900bd] (rid 213116) by pooryorick on 2023-04-16 23:20:09:
- comment changed to:
In the script below, after the first [read] returns an encoding error, the channel is reconfigured to <code>-encoding iso8859-1</code>, and the subsequent [read] should return character <code>\x81</code>, but instead it repeats the error: <blockquote><code><verbatim> set res {} set chan [file tempfile] fconfigure $chan -encoding binary # \x81 is invalid in utf-8. -eofchar is not detected, because it comes later. puts -nonewline $chan A\x81\x1A flush $chan seek $chan 0 fconfigure $chan -encoding utf-8 -buffering none -eofchar \x1A \ -translation lf -profile strict catch {read $chan} cres puts $cres ;#-> error reading "file*": invalid or incomplete multibyte or wide character puts [list eof [eof $chan]] ;#-> eof 1 puts [list position [tell $chan]] ;#-> position 1 chan configure $chan -encoding iso8859-1 catch {read $chan} cres puts $cres] ;#-> error reading "file*": invalid or incomplete multibyte or wide character </verbatim></code></blockquote> - login: "pooryorick"
- mimetype: "text/plain"
- comment changed to:
Ticket change [f93f30508b] (rid 213304) by pooryorick on 2023-04-19 07:14:01:
- assignee changed to: "pooryorick"
- login: "pooryorick"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
Ticket change [7095a50a45] (rid 213600) by pooryorick on 2023-04-21 23:02:25:
- closedate changed to: "2460056.46001573"
- closer changed to: "pooryorick"
- login: "pooryorick"
- mimetype: "text/plain"
- status changed to: "Closed"