Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9fa3b3f859fab472dcec303b14c8e8a4c3917a7c4cc8c7cf98e8a65d7d6e1d90
Ticket: 4dbfa46caa1aad3dc2e359b0d36e35244a623a94
TIP #601 bug: handling of '-buffersize'
User & Date: jan.nijtmans on 2022-03-18 15:24:02
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. 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.
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Critical"
  11. status changed to: "Open"
  12. submitter changed to: "jan.nijtmans"
  13. subsystem changed to: "26. Channel Transforms"
  14. title changed to: "TIP #601 bug: handling of '-buffersize'"
  15. type changed to: "Bug"