Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ff6e397e1ca070148fbf1dc9842e548270912d86
Ticket: 3613609fffffffffffffffffffffffffffffffff
lsort -nocase does not sort non-ASCII correctly
User & Date: dkf on 2013-05-22 19:37:22
Changes

  1. icomment:
    Found a problem in TclUtfCasecmp(); I get the wrong result from this:
      lsort -ascii -nocase [list a\u0000a a]
    
    The problem comes when two strings are a different length but the character in the longer at the index of the length of the shorter is \u0000; we're saying the wrong string is shorter (or that the two strings are the same).
    
    (Evil edge cases 'Я' us!)
    
    
  2. login: "dkf"
  3. mimetype: "text/plain"
  4. username: "dkf"