Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bb59056368f6e5c2d4d59056c8b3b92d7f9d4f0e67d0d222ebf9cb8634584dd1
Ticket: 25cdcb7e8fb381fb981b5595cfc6dc48a7f1c83b
incomplete utf-8 sequence followed by eofchar results in failed assertion
User & Date: pooryorick on 2023-04-18 19:24:11
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    The following script causes build trunk to abort: 
    
    <blockquote><code><verbatim>
    set chan [file tempfile];
    fconfigure $chan -encoding binary
    puts -nonewline $chan \x81\x1A
    flush $chan
    seek $chan 0
    chan configure $chan -encoding utf-8 -profile strict
    read $chan 1
    </verbatim></code></blockquote>
    
    Output:
    
    <blockquote><code><verbatim>
    /path/to/tcl9.0/generic/tclIO.c:6154: DoReadChars: Assertion `!GotFlag(statePtr, CHANNEL_EOF) || GotFlag(statePtr, CHANNEL_STICKY_EOF) || GotFlag(statePtr, CHANNEL_ENCODING_ERROR) || Tcl_InputBuffered((Tcl_Channel)chanPtr) == 0' failed.
    </verbatim></code></blockquote>
    
  5. is_private changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. private_contact changed to: "2b2275eab1118e1fab0016cf1c5702893c6af86c"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "pooryorick"
  13. subsystem changed to: "- New Builtin Commands"
  14. title changed to:
    incomplete utf-8 sequence followed by eofchar results in failed assertion
    
  15. type changed to: "Bug"