Artifacts Associated With Ticket 17a1cb8d6e2a51bd
Ticket change [e0807a6185] (rid 207827) by pointsman on 2022-12-12 23:44:57:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
With 252e282cd21b (2022-12-12 06:11:22 UTC) # Create the test data package require Tcl 9 set fd [open data.txt w+] fconfigure $fd -encoding utf-8 puts $fd "A\U10FFFFBCDE" close $fd # The data is a valid UTF-8 encoded Unicode string # in the understanding of Tcl. # Try to read it package require Tcl 9 set fd [open "data.txt"] fconfigure $fd -encoding utf-8 -strictencoding 1 -nocomplainencoding 0 set data "" while {![eof $fd]} { append data [read $fd] } # Not reached with this test data puts [string length $data] close $fd I get: error reading "file6": illegal byte sequence while executing "read $fd" ("while" body line 2) etc. Expected behaviour: Read the data without raising error. - foundin initialized to: "9.0a4, trunk"
- is_private initialized to: "0"
- login: "pointsman"
- priority initialized to: "5 Medium"
- private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
- resolution initialized to: "None"
- severity initialized to: "Severe"
- status initialized to: "Open"
- submitter initialized to: "pointsman"
- subsystem initialized to: "25. Channel System"
- title initialized to: "Tcl 9: "illegal byte sequence" ?!"
- type initialized to: "Bug"
Ticket change [af5373e31b] (rid 207837) by jan.nijtmans on 2022-12-13 07:59:45:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459926.83316896"
- closer changed to: "jan.nijtmans"
- icomment:
Does [05414ca78462df68|this] clarify the situation? Referring to ticket [084ab982fe], you asked there: > Why do we have the fconfigure -strict mode at all? Apparently, -strict is not the right option for you.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Rejected"
- status changed to: "Closed"
Ticket change [d0a74b4e24] (rid 207839) by jan.nijtmans on 2022-12-13 11:47:09:
- closedate changed to: "2459926.99107986"
- icomment:
B.T.W. I know that "illegal byte sequence" is not the best error-message we can think of. But that's a limination of the channel code, that we are restricted to POSIX errors. This one is the closest to the truth.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
Ticket change [76c638ce2a] (rid 207857) by jan.nijtmans on 2022-12-16 09:42:45:
- closedate changed to: "2459929.90469735"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- severity changed to: "Minor"
Ticket change [6bfb791677] (rid 207919) by jan.nijtmans on 2022-12-19 22:21:28:
- closer changed to: "nobody"
- icomment:
As there seems no interest to check for noncharacters, remove those checks. See [cbaa5e70167db75b]
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Pending"
Ticket change [4ece7efe93] (rid 207925) by jan.nijtmans on 2022-12-20 09:46:27:
- closedate changed to: "2459933.90726556"
- closer changed to: "jan.nijtmans"
- icomment:
Branch now merged to core-8-branch and trunk. Closing
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- status changed to: "Closed"