Artifacts Associated With Ticket 218489ffffffffff
Ticket change [0c84dae5c6] (rid 114192) by nobody on 2000-10-26 01:01:12:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 706 Bug Version: 8.0.4 SubmitDate: '1998-10-13' LastModified: '1998-10-13' Severity: SER Status: Released Submitter: admin ChangedBy: rjohnson OS: All OSVersion: NA Machine: NA FixedDate: '1998-10-13' FixedInVersion: NA ClosedDate: '2000-10-25' >> Jarle Greipsland wrote: >> > I believe there is a bug in the lsort function when the -dictionary style >> > comparisons are used. >> > >> > Example: >> > % lsort -dictionary {0k 1k 10k} >> > 1k 0k 10k >> > >> > As I understand the documentation for this option the correct result should >> > have been {0k 1k 10k}. Perhaps this should be fixed in tcl8.1? >> > >> Bug is still present in 8.1a2 (same bad results on NT). > >I think the patch shown below applied to the >"generic/tclCmdIL.c" source file may fix the problem. > >*** tclCmdIL.c Fri Aug 7 16:19:52 1998 >--- tclCmdIL.c.new Sun Aug 30 19:07:26 1998 >*************** >*** 2863,2873 **** > */ > > zeros = 0; >! while ((*right == '0') && (*(right + 1) != '\0')) { > right++; > zeros--; > } >! while ((*left == '0') && (*(left + 1) != '\0')) { > left++; > zeros++; > } >--- 2863,2873 ---- > */ > > zeros = 0; >! while ((*right == '0') && (isdigit(UCHAR(right[1])))) { > right++; > zeros--; > } >! while ((*left == '0') && (isdigit(UCHAR(left[1])))) { > left++; > zeros++; > } . . . ! Am I reading that correctly? Lexicographic sorting which encounters any string which begins with a zero, and embeds non-digits, is likely to be in error? That sounds important. What's the process, again? Does Scriptics write you an acknowledgement, or is there a place under www.scriptics.com where faults are analyzed, or what? - foundin initialized to: "obsolete: 8.0.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "69. Other"
- title initialized to:
patch for lsort -dictionary: bug sorting string beginning wi
- type initialized to: "Bug"
Ticket change [6d19fcceaa] (rid 128633) by welch on 2000-10-26 08:23:17:
- closedate changed to: "2000-10-26T01:23:17"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [57fa1939d1] (rid 117722) by dgp on 2001-04-16 23:32:42:
- closedate changed to: "2001-04-16T16:32:42"
- closer changed to: "dgp"
- subsystem changed to: "17. Commands I-L"