Overview
| Artifact ID: | 8f11d755e88f6295850b63ecebc4d6502beed28704954c44ffecb0aaaeb5d8cf |
|---|---|
| Ticket: | 85ddd247b637bcb25990fc55536e0ce3f9e754b2
Unable to set channel to binary encoding |
| User & Date: | sebres on 2024-06-22 11:16:59 |
Changes
- icomment:
<blockquote>> The documentation should explain that in Tcl "binary" data *is* text</blockquote> It is not! It is and remain bytearray, at least as long one is working only with commands supporting binary data (bytearray), it'd even never shimmer to something else (and shall not do that). EAIS may lead people to make the same mistake, you did, but it doesn't change the reality - bytearray's remain special things in Tcl. Bytearrays were never texts and will never be. The fact that bytes are also representable as string (chars) in Tcl (without explicit conversion or cast due to EIAS) shall not be explained, as you suggest, that it is text in Tcl, because it is not. Also I don't understand how it can be comparable with iso8859-1 (where, strictly seen the standard, it definitely misses chars 0x00-0x1F and 0x7F-0x9F, so I guess it need to fail with profile strict or replace with profile replace, and even if it doesn't right now, it may be changed later). Nor I understand how arguments like this may help by the issue. By the way, unicode is also not a real encoding, because similar to binary it simply forces tcl to handle channel as unicode string (objects with unicode representation), however it doesn't bother someone at all.
- login: "sebres"
- mimetype: "text/x-markdown"