Skip to content
Tcl Source Code History Of Ticket 218489ffffffffff
Login

History Of Ticket 218489ffffffffff

Artifacts Associated With Ticket 218489ffffffffff

  1. Ticket change [0c84dae5c6] (rid 114192) by nobody on 2000-10-26 01:01:12:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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?
      
      
      
      
    4. foundin initialized to: "obsolete: 8.0.4"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "69. Other"
    10. title initialized to:
      patch for lsort -dictionary: bug sorting string beginning wi
      
    11. type initialized to: "Bug"
  2. Ticket change [6d19fcceaa] (rid 128633) by welch on 2000-10-26 08:23:17:

    1. closedate changed to: "2000-10-26T01:23:17"
    2. closer changed to: "welch"
    3. priority changed to: "2"
    4. resolution changed to: "Fixed"
    5. status changed to: "Closed"
  3. Ticket change [57fa1939d1] (rid 117722) by dgp on 2001-04-16 23:32:42:

    1. closedate changed to: "2001-04-16T16:32:42"
    2. closer changed to: "dgp"
    3. subsystem changed to: "17. Commands I-L"