Overview
| Artifact ID: | 9fa3b3f859fab472dcec303b14c8e8a4c3917a7c4cc8c7cf98e8a65d7d6e1d90 |
|---|---|
| Ticket: | 4dbfa46caa1aad3dc2e359b0d36e35244a623a94
TIP #601 bug: handling of '-buffersize' |
| User & Date: | jan.nijtmans on 2022-03-18 15:24:02 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
A number of test-cases started failing in Tcl 9.0 as a result of TIP #601 That was expected, since testcases which depend on replacing invalid characters with '?' now should throw an exception. However, there were [https://core.tcl-lang.org/tcl/file?udc=1&ln=1541-1566&ci=b1420df200615525&name=tests%2Fio.test|two testcases (for 9.0)] which puzzled me: I marked those with "knownBug". My first investigation hints that this is - indeed - a bug in the current TIP #601 implementation. Those 2 testcases don't throw an exception, but they truncate the channel one more byte than expected. The cause of this is an invalid byte at the end of the stream, as a result of the truncation. But .... the stream is truncated as a result of the channel's "-buffersize" option, we don't know yet whether this byte is really invalid or not: It could still be followed by more bytes, forming a valid utf-8 byte sequence. Conclusion: when a channel's '-buffersize' is used, we have to accept 'invalid' bytes at the end of the stream as before. - foundin changed to: "8.7"
- is_private changed to: "0"
- login: "jan.nijtmans"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Critical"
- status changed to: "Open"
- submitter changed to: "jan.nijtmans"
- subsystem changed to: "26. Channel Transforms"
- title changed to: "TIP #601 bug: handling of '-buffersize'"
- type changed to: "Bug"