Overview
| Artifact ID: | badf37911eca445c9855d087742f5120c14473d9efa7cf709a64766ac7ed3f48 |
|---|---|
| Ticket: | b8f575aa2398b0e44b5a037326b9d75037e2da4a
Tcl 9: eof erroneously flagged with not reported encoding read error |
| User & Date: | apnadkarni on 2023-02-21 17:00:24 |
Changes
- icomment:
Jan, I have been preoccupied with the actual encoding system and not really looked at the I/O implementation. At a high level, assuming I understood you correctly wrt `fconfigure -eof D`, here's why I think your analogy does not hold. When an application does a `fconfigure -eof`, it's essentially saying that the logical content of the file from its perspective ends when `D` is encountered. So a `read $chan` does in fact return "entire" content as expected from the application's perspective. In the encoding case (with strict mode), the application is not changing what it views as the content of the file. It is rather saying the content is expected to strictly adhere to the encoding. If the `read` completes successfully, the natural expectation is that the entire file contents were encoded correctly and were retrieved in their entirety. The two cases are thus very different. /Ashok
- login: "apnadkarni"
- mimetype: "text/x-markdown"