Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2023-01-08
22:47
Fix for [https://core.tcl-lang.org/tk/tktview?name=370b1ff03e|370b1ff03e]. Not complete/correct yet,... check-in: 522899ab24 user: jan.nijtmans tags: bug-370b1ff03e
2022-03-21
12:04 • Closed ticket [4dbfa46caa]: TIP #601 bug: handling of '-buffersize' ... artifact: 9a7d1bad6d user: jan.nijtmans
09:57
Fix [4dbfa46caa]: TIP #601 bug: handling of '-buffersize' check-in: dd396e24b7 user: jan.nijtmans tags: core-8-branch
2022-03-18
15:39
See [4dbfa46caa]: Remove "constraint deprecated" from failing testcases which should pass check-in: 126625695d user: jan.nijtmans tags: bug-4dbfa46caa
15:24 • Ticket [4dbfa46caa] TIP #601 bug: handling of '-buffersize' status s... artifact: 52105be2e5 user: jan.nijtmans
15:24 • New ticket [4dbfa46caa]. artifact: 9fa3b3f859 user: jan.nijtmans

TIP #601 bug: handling of '-buffersize'

Closed / Fixed4dbfa46caa1aad3dc2e359b0d36e35244a623a94Created 5 years agoUpdated 5 years ago
Descriptionwiki2022-03-18 15:24:02
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 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.

Referenced by3
jan.nijtmans Ticket [4dbfa46caa]: 3 changes [History diff]2022-03-18 15:24:15
jan.nijtmanswiki2022-03-21 12:04:25

Fixed [here]

Log in (anonymous is fine) to add a comment.