Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a30f31a72bdb0fc44efe188a76720c890a78e52d
Ticket: 47e365d63990999828528ec13bdfa96861c70522
LSORT -DICTIONARY does not honour number sign chirality
User & Date: anonymous on 2014-04-11 01:25:37
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    LSORT -DICTIONARY does NOT honour number sign chirality.
    
    % lsort -real -dict -inc [list 5 -7 53 54 55 50 51 -10 -9]
    -7 -9 -10 5 50 51 53 54 55
    
    The negative numbers are ASCII sorted with the "-" in front, then rest of the chars (the digits) are sorted based on -increasing/-decreasing as if they were absolute values (the "-" applies as ASCII text NOT as part of the number). The -REAL flag works, but, the effect is negated with -DICTIONARY is used with it. (-real should override -dictionary in this case).
    
    This has been tested with TCL versions 8.5.11 and 8.6.1.
    
  5. foundin changed to: "8.5.11, 8.6.1"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "f30ff1c28814b93e5b55bf4557b5c79f445ee324"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "17. Commands I-L"
  15. title changed to:
    LSORT -DICTIONARY does not honour number sign chirality
    
  16. type changed to: "Bug"