Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ffdb1388796f78b86e1c3599d20a657b823a30ad
Ticket: eb6b68c1a9f3d07e0bceeb2a3b47a5c4d343d096
Broken case in compiled [string replace]
User & Date: dgp on 2016-10-13 14:01:13
Changes

  1. assignee changed to: "dkf"
  2. icomment:
    
    The stanza of code:
    
    http://core.tcl.tk/tcl/artifact/57cea04b21f64a97?ln=5731-5736
    
    is until now untested.
    
    The stanza is unreliable because it makes use of
    Tcl_SetObjLength() without accounting for that
    routine's bizarre dual-mode where it behaves
    functionally differently whether or not its
    (Tcl_Obj *) argument points to a value with
    an existing string rep or is pure unicode.
    It can act on bytes or on chars, but for proper
    functioning here, it would need to be forced
    to reliably operate on chars.
    
    Simplest fix would be just to remove this stanza
    and forgo the attempted optimization in  the
    (rare?) circumstance that lack of sharing permits it.
    
  3. login: "dgp"
  4. mimetype: "text/plain"