Artifacts Associated With Ticket d1a39e8c28d35dca
Ticket change [b7c0f917b0] (rid 210077) by apnadkarni on 2023-03-12 16:45:05:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized 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 initialized to: "8.7"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "11. Conversions from String"
- title initialized to: "Inconsistent use of TCL_ENCODING_NO_TERMINATOR"
- type initialized to: "Bug"
Ticket change [33283e1365] (rid 210083) by apnadkarni on 2023-03-12 17:06:54:
- 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"
- comment changed to:
Ticket change [c54b8a849e] (rid 210087) by apnadkarni on 2023-03-12 17:33:37:
- assignee changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [c91762bd52] (rid 252001) by apnadkarni on 2026-03-11 05:58:00:
- closedate changed to: "2461110.7486143867"
- closer changed to: "apnadkarni"
- icomment: "Fixed via TIP 737."
- login: "apnadkarni"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"