Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-13
16:29 • Closed ticket [1136e210b3]: 8.7, 9.0: Bad input triggers DoReadChars Assertion</... artifact: 7bce46a376 user: serhiy.storchaka
2023-04-21
23:03 • Closed ticket [25cdcb7e8f]: incomplete utf-8 sequence followed by eofchar result... artifact: 29711dd841 user: pooryorick
2023-04-18
22:01 • Pending ticket [25cdcb7e8f]. artifact: 4bbe3b2bfc user: pooryorick
22:00
Fix for [25cdcb7e8fb381fb]: Incomplete utf-8 sequence followed by eofchar results in failed asserti... check-in: a02c5b9f8b user: pooryorick tags: trunk, main
19:24 • Ticket [25cdcb7e8f] incomplete utf-8 sequence followed by eofchar results in fai... artifact: 29027c6028 user: pooryorick
19:24 • New ticket [25cdcb7e8f]. artifact: bb59056368 user: pooryorick

incomplete utf-8 sequence followed by eofchar results in failed assertion

Closed / Fixed25cdcb7e8fb381fb981b5595cfc6dc48a7f1c83bCreated 4 years agoUpdated 4 years ago
Descriptionwiki2023-04-18 19:24:11
The following script causes build trunk to abort:
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

Output:

/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.
Referenced by1
  • 7bce46a376Closed ticket [1136e210b3]: 8.7, 9.0: Bad input triggers DoReadChars Assertion plus 4 other changes ticket2026-10-13 16:29:20
pooryorick Ticket [25cdcb7e8f]: 4 changes [History diff]2023-04-18 19:24:34
pooryorickwiki2023-04-18 22:01:22

Fixed in [a02c5b9f8b].

pooryorick Closed ticket [25cdcb7e8f]. [History diff]2023-04-21 23:03:08
Log in (anonymous is fine) to add a comment.