Overview
| Artifact ID: | ff40e8134af8c52bd03a10c18a7924f27e3bdb9adb09553711f8447a50079441 |
|---|---|
| Ticket: | 85ddd247b637bcb25990fc55536e0ce3f9e754b2
Unable to set channel to binary encoding |
| User & Date: | jan.nijtmans on 2024-06-22 12:31:47 |
Changes
- icomment:
> 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). Allow me to correct this. The ranges 0x00-0x1F and 0x7F-0x9F in iso8859-1 are control codes, definitely a valid range. Therefore "iso8859-1" is one of the few encodings with a unique property: Reading a file with encoding set to "iso8859-1", there are no invalid bytes, so it doesn't matter which -profile is set: No encoding errors are thrown during file reading, whether -profile is "strict", "tcl8" or "replace", or whatever future value. That should never change. In Tcl 8.x, "binary" and "iso8859-1" are not 100% aliases: "binary" has additional optimizations when using byte arrays. But at script level, those two behave the same. "binary" has some shortcuts which makes things faster, which "iso8859-1" doesn't have. In Tcl 9.0, "iso8859-1" inherits the same optimizations, which means that "binary" now is a real alias to "iso8859-1". Hope this helps
- login: "jan.nijtmans"
- mimetype: "text/plain"