Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b4a0d8eca33b2b47e89e525138ba6e51e764881b992bb36173cda31902d96859
Ticket: b8f575aa2398b0e44b5a037326b9d75037e2da4a
Tcl 9: eof erroneously flagged with not reported encoding read error
User & Date: oehhar on 2022-12-09 09:30:06
Changes

  1. icomment:
    Thanks for looking into this. This is all difficult and new code.
    
    For me, an "eof" is always set be the read, if there is no information any more available, and the channel may be closed.
    
    This is not the case, here. A "read" is pending to get the final information on the channel. So, eof should not be 1.
    
    If it is read in an internal buffer is not important. eof should display the situation on the script level. The script is not aware of internal buffers.
    
    In consequence, I second the opinion, that "eof" should be 0 until the error is reported by a read.
    
    We will probably also have to look into read fileevents. The read file event should be fired to flag the pending error.
    
    Thank you all,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"