Overview
| Artifact ID: | 2b49605281b0fb60d294f740c545bdb359ed14749aeaee886b1451d5ad8f2b39 |
|---|---|
| Ticket: | 4a7397e0b3d60f1aebf50331b748da9493dba07d
Tcl 9: fcopy with -strictencoding 1 UTF-8 channels |
| User & Date: | jan.nijtmans on 2023-01-26 07:40:20 |
Changes
- icomment:
> Jan is right, fcopy should throw execption. If the channel doesn't have -command specified, an exception should be thrown when an encoding error occurs. If -command is specified, the command will be called with 2 arguments Another tweak: according to the documentation: [https://core.tcl-lang.org/tcl/file?name=doc/fcopy.n&ci=f9cdaa50ad760a0c&ln=29-30] That's not 100% correct any more. For Tcl 8.7, it should become: size is in bytes if the input channel is in binary mode, or if the two channels are using the same encoding and -strict is not specified. Otherwise, size is in characters. For Tcl 9.0, it should become: size is in bytes if the input channel is in binary mode, and is in characters otherwise. Agreed?
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"