Overview
| Artifact ID: | 33283e1365aa81cf632f8bd87e5d09e9bbf26d0072d49565d6e5752919773af7 |
|---|---|
| Ticket: | d1a39e8c28d35dca1afc97cbf9006c1b9298f816
Inconsistent use of TCL_ENCODING_NO_TERMINATOR |
| User & Date: | apnadkarni on 2023-03-12 17:06:54 |
Changes
- comment changed to:
The `Tcl_ExternalToUtf` function does not append a terminating nul (by design) if the TCL_ENCODING_NO_TERMINATE flag is specified. This is useful functionality. However, the complementary `Tcl_UtfToExternal` function ignores this flag and always appends a null. This is surprising behavior as flags are commonly defined for the two functions so `Tcl_UtfToExternal` should also obey this flag. Moreover, this flag is useful and public in `tcl.h` but is undocumented in a manpage or TIP afaict. It should be documented for use by extensions (for 8.7 at least) or moved to `tclInt.h`.
- foundin changed to: "8.6"
- login: "apnadkarni"
- mimetype: "text/plain"