Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#719 lsort -dictionary option bug with imbedded numbers

obsolete: 8.0.3
closed-fixed
nobody
2
2001-04-16
2000-10-26
Anonymous
No

OriginalBugID: 1389 Bug
Version: 8.0.3
SubmitDate: '1999-03-02'
LastModified: '1999-08-07'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Windows NT
OSVersion: 4.0
Machine: X86
FixedDate: '1999-08-07'
FixedInVersion: 8.1
ClosedDate: '2000-10-25'

Name:
Jon Hilbert

CustomShell:
none

ReproducibleScript:
lsort -dictionary {9-999-9 0-101-0}

ObservedBehavior:
Results are {9-999-9 0-101-0}

the -dictionary sort doesn't reorder the supplied list because of the code to ignore leading zeroes. I have submitted a patch for this before (tcl 8.0) but it seems to be ignored. I will try to submit a patch in a Scriptics-approved fashion. This may have changed dramatically for 8.1 due to internationalization - I haven't looked at that.

DesiredBehavior:
Result should be {0-101-0 9-999-9}

PatchFiles:
tclCmdIL.c

This returns the correct, desired value in 8.1+.
-- 08/07/1999 hobbs

Discussion

  • Brent B. Welch
    Brent B. Welch
    2000-10-26

    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter
    Don Porter
    2001-04-16

    • labels: 104246 --> 17. Commands I-L