Overview
| Artifact ID: | b166b20e2c9dfe495f876250d0c6eca95b8faa8185a36de40e17bab3775d589f |
|---|---|
| Ticket: | b8f575aa2398b0e44b5a037326b9d75037e2da4a
Tcl 9: eof erroneously flagged with not reported encoding read error |
| User & Date: | pooryorick on 2023-02-18 10:23:42 |
Changes
- icomment:
At this point, we have a problem. Jan, you have taken the following actions: # You made commit [d156af9fb76dd2f4], which broke [reads] and [gets]. In the case of [read] an encoding error will never be surfaced unless the caller remembers to call [read] again, and that is new semantics for the command. In the case of [gets] the command not only would have these new semantics, but also simply hangs indefinitely when an encoding error occurs. Such a change to Tcl semantics requires an accepted TIP, which you did not bother with. # You reverted my commit, [00995080d6378c6d], which ensured no data loss, in the case of an encoding error, by returning successfully-read data in the return options dictionary, which required no change to the current function signatures of [read] and [gets], and preserved existing semantics. Your reasoning was that adding a new key to the return options dictionary requires a TIP. # I subsequently submitted TIP 653, which specifies the new key in the return options dictionary. I requested a vote, on it, and you refused to call the vote. # I made a new commit, [11c7f071cb0f3e9f], which omitted those parts of the fix that change the return options dictionary so that no TIP was necessary. You reverted this commit on the grounds that it loses data. So if I commit a fix that doesn't lose data, you revert it on the grounds that it changes the return options dictionary, and if I commit a fix that does lose data, you revert it on the grounds that the caller can't get at that data. Meanwhile you happily have your own un-TIP'd semantics-changing commit sitting in both core-8-branch and trunk. This situation is unfair: There's a set rules for you, and a different set of rules for others. If my commits can't be on core-8-branch or trunk, then you should at least keep your commit off those branches as well until they are properly accepted via a TIP. I've repaired the semantics of [read] and [gets] on trunk by reverting your fix. You should not reinstate it unilaterally. - login: "pooryorick"
- mimetype: "text/x-fossil-wiki"