Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 29137b4d392f7f6ca61045bb2bacbf90a66ccb66
Ticket: 3613609fffffffffffffffffffffffffffffffff
lsort -nocase does not sort non-ASCII correctly
User & Date: apnadkarni on 2013-05-20 17:42:15
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    From the chat
    
    I don't expect the following two commands to give the same answer
    [00:00]apn(wits) 93 % lsort  [list \u101 \u100]
    Ā ā
    (wits) 94 % lsort  -nocase [list \u101 \u100]
    Ā ā
    [00:01]apnWith -nocase, I would expect the second command to return ā Ā
    [00:02]yukonbob exits, stage left!
    [00:02]apnjust like
    [00:02]apn(wits) 96 % lsort [list a A]
    A a
    (wits) 97 % lsort -nocase [list a A]
    a A
    [00:04]dgpfile the bug
    
    The issue boils down to MergeLists using strcasecmp which does not handle non-ASCII characters.
    
  4. foundin changed to: "current: 8.6.0"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "apnadkarni"
  10. subsystem changed to: "17. Commands I-L"
  11. title changed to: "lsort -nocase does not sort non-ASCII correctly"
  12. type changed to: "Bug"