Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b7c0f917b0d4ce1c7cea830edf471820d0733944b5d8b1e15652a69359586e62
Ticket: d1a39e8c28d35dca1afc97cbf9006c1b9298f816
Inconsistent use of TCL_ENCODING_NO_TERMINATOR
User & Date: apnadkarni on 2023-03-12 16:45:05
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. 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`
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "11. Conversions from String"
  15. title changed to: "Inconsistent use of TCL_ENCODING_NO_TERMINATOR"
  16. type changed to: "Bug"