Overview
| Artifact ID: | 3efd8917af64c9509a8e6cfff2110f09a9c277fa27f53b8703a459d7b474a526 |
|---|---|
| Ticket: | 85ddd247b637bcb25990fc55536e0ce3f9e754b2
Unable to set channel to binary encoding |
| User & Date: | cjmcdonald on 2024-06-21 07:26:48 |
Changes
- closedate changed to: "2460482.81028514"
- closer changed to: "cjmcdonald"
- icomment:
If the user sets an encoding of binary (whether using -encoding or -translation), then for fconfigure to return something different is unexpected and surprising: It's undocumented in the man pages. It's not at all obvious to a user that encoding binary and encoding iso8859-1 are the same thing. As a user, setting encoding binary means that I want byte values to be transfered unchanged. Setting character set encoding iso8859-1 means that I want character values to be transformed between that encoding and Tcl's internal representation. If they happen to be implemented in the same way then I'd expect Tcl to manage that internally, rather than exposing it to the user. Changing the value which fconfigure returns causes needless problems to scripts or GUIs which perform introspection of channel settings.
- login: "cjmcdonald"
- mimetype: "text/plain"