Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a6b805b864b54c83fe7dda309516281bd4fba278
Ticket: 2564363fffffffffffffffffffffffffffffffff
string equality testing does not cover encoding variants
User & Date: dgp on 2009-02-04 22:55:05
Changes

  1. icomment:
    
    extended example showing the inconsistency
    due to shimmering, and differing definitions
    of equality for different intreps:
    
    % set a [encoding convertfrom identity \x21]
    !
    % set b [encoding convertfrom identity \xc0\xa1]
    !
    % set s string; # Force direct evaluation - no compile!
    string
    % $s equal $a $b
    0
    % string length $a; # Convert to the "string" objType
    1
    % string length $b
    1
    % $s equal $a $b
    1
    
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"