Overview
| Artifact ID: | b7c0f917b0d4ce1c7cea830edf471820d0733944b5d8b1e15652a69359586e62 |
|---|---|
| Ticket: | d1a39e8c28d35dca1afc97cbf9006c1b9298f816
Inconsistent use of TCL_ENCODING_NO_TERMINATOR |
| User & Date: | apnadkarni on 2023-03-12 16:45:05 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-markdown"
- 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 (preferable) or moved to `tclInt.h`
- foundin changed to: "8.7"
- is_private changed to: "0"
- login: "apnadkarni"
- priority changed to: "5 Medium"
- private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "apnadkarni"
- subsystem changed to: "11. Conversions from String"
- title changed to: "Inconsistent use of TCL_ENCODING_NO_TERMINATOR"
- type changed to: "Bug"