Overview
| Artifact ID: | 00c974817239cef9dee1f147d52449f23e6badb0b4f856b5439fd6480303155a |
|---|---|
| Ticket: | 4a7397e0b3d60f1aebf50331b748da9493dba07d
Tcl 9: fcopy with -strictencoding 1 UTF-8 channels |
| User & Date: | jan.nijtmans on 2022-12-22 14:42:33 |
Changes
- icomment:
Looking [https://core.tcl-lang.org/tcl/file?udc=1&ln=9677&ci=tip&name=generic%2FtclIO.c|here], it's quite understandable why this happens. The fcopy code has a variable "sameEncoding", which prevents the encoding/decoding step when both encodings are the same. That's an optimization which doesn't take the new flags into account Changing priority to "Cosmetic". If you like, you can submit a patch removing this variable, but the chance introducing a problem is higher than the chance solving anything practical. More useful (and related): What happens when converting between utf-8 and utf-16 (for example). "fcopy" is not able to throw an exception currently.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- severity changed to: "Cosmetic"