Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
21:02 • Ticket [218594ffff] lsort -dictionary option bug with imbedded numbers statu... artifact: 5b8bd29469 user: dgp
2000-10-26
08:25 • Closed ticket [218594ffff]. artifact: 0bcfa10860 user: welch
01:02 • New ticket [218594ffff]. artifact: 083d5329ba user: nobody

lsort -dictionary option bug with imbedded numbers

Closed / Fixed218594ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:02:54
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
welch Closed ticket [218594ffff]. [History diff]2000-10-26 08:25:09
dgp Ticket [218594ffff]: 3 changes [History diff]2001-04-16 21:02:05
Log in (anonymous is fine) to add a comment.