Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1707dcfbc01c2412a4e9ea547f455c134b27b3e191acb4f35ebdab904bfd1d06
Ticket: 7f1162a8674cc65c9b72169818badc3186f97678
concatenation does not make usable surrogate pairs
User & Date: chw on 2021-04-14 09:38:16
Changes

  1. closedate changed to: "2459318.90157567"
  2. closer changed to: "chw"
  3. icomment:
    Hmm, wondering about the comment on top of Tcl_AppendObjToObj() which states
    
    ...
     *      IMPORTANT: This routine does not and MUST NOT shimmer appendObjPtr.
     *      Callers are counting on that.
    ...
    
    and later on in the implementation
    
    ...
        /* If appended string starts with a continuation byte or a lower surrogate,
         * force objPtr to unicode representation. See [7f1162a867]
         * This fixes append-3.4, append-3.7 and utf-1.18 testcases. */
        if (ISCONTINUATION(TclGetString(appendObjPtr))) {
            Tcl_GetUnicode(objPtr);
        }
    ...
    
    which has the potential of breaking the promise. Is this not a problem?
    
  4. login: "chw"
  5. mimetype: "text/plain"