Overview
| Artifact ID: | da9e3ddccd1cbaef43049f57e61e0fbf1b25e8d409f3b48992675cb25300031c |
|---|---|
| Ticket: | 85ddd247b637bcb25990fc55536e0ce3f9e754b2
Unable to set channel to binary encoding |
| User & Date: | griffin on 2024-06-22 12:53:07 |
Changes
- icomment:
I find this discussion strange. I agree with sebres here, "binary" means raw data, which in Tcl terms is a bytearray. There is no mapping for the sequence of bytes to any string or glyph representation. If the tcl interpreter is forced to print the bytearray (i.e. convert the bytes to a glyph), then iso-8859-1 is the defined mapping that tcl (tk?) should use, even if the bytes aren't actually meant to be used as printable glyphs. (Note: even iso-8859-1 is not ideal because not all byte values have a defined glyph) In reality, the receiving device will ultimately decide what glyph mapping is used. The term "binary" has always meant "raw data, don't touch or interpret please!". So I disagree with Nathan's interpretation wrt iso-8859-1. Binary means binary, and the channel configuration should reflect that on introspection, even if, internally, the treatment of the data is identical between iso-whatever (iso-8859-2, iso-8859-7,...) and binary. This is important information the coder needs.
- login: "griffin"
- mimetype: "text/x-markdown"