Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a1a0a45549d987034ac6ef569aeb86fe243566880cdcd67248d1d6d4e97e4546
Ticket: dd010cadfb99cee6c0a38d1bd4f4927a4945f4ec
[string trim] mishandles surrogates
User & Date: dgp on 2020-04-06 15:40:33
Changes

  1. icomment:
    
    This "solution" places an input restriction burden on every algorithm 
    that relies on  [string trim*] to keep expected invariants in its behavior.
    
    The problem isn't that any programmer would want to do foolish things
    like this, it is that the commands are now vulnerable to these inputs in
    ways they were not before.
    
    I want people to adopt Tcl 9 too, but I don't want to force the issue
    by breaking Tcl 8 and then documenting the breakage.
    
  2. login: "dgp"
  3. mimetype: "text/plain"