296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
|
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
|
+
-
-
+
+
|
...try some other method...
}
```
## Removal of `binary` and the empty string as valid values for the `-encoding` setting for channels
In Tcl 8.6, `binary` or the empty string could be passed as a valid option to the
`-encoding` option of the `chan configure` and `fconfigure` commands.
`chan configure` and `fconfigure` commands. These are no longer valid in Tcl 9. Pass
`iso8859-1` as the encoding value for the same effect. See the TIP for the rationale.
These are no longer valid in Tcl 9.
Pass `iso8859-1` as the encoding value for the same effect. See the TIP for the rationale.
To configure a channel for binary data, either `open` must be passed the `b` modifier
(e.g. `open foo.txt rb`) or the channel must be configured with `-translation binary`.
This was the case in Tcl 8.6 as well and most uses of `-encoding binary` for the
purpose were either redundant or incorrect.
See [TIP 699](https://core.tcl-lang.org/tips/doc/trunk/tip/699.md).
|