Menu

#156 [lsort -dictionary "A Z ^Z a"] sorts differently on Windows

obsolete: 8.3b1
closed-fixed
nobody
2
2001-04-13
2000-10-26
Anonymous
No

OriginalBugID: 4056 Bug
Version: 8.3b1
SubmitDate: '2000-01-21'
LastModified: '2000-01-21'
Severity: SER
Status: Closed
Submitter: techsupp
ChangedBy: hobbs
RelatedBugIDs: 4054
OS: All
OSVersion: Windows and Linux
Machine: Windows and Linux
FixedDate: '2000-10-25'
ClosedDate: '2000-01-21'

Name:
Philip Moore

Comments:
Sorry for basically reporting this bug twice.. But I've narrowed the problem down.. It does NOT involve Eggdrop..
I just don't understand:
Linux tclsh:
% lsort -dictionary "A Z ^Z a"
A Z ^Z a

Why does it put "Z" after "A" and before "a"? I know the "^Z" in there is confusing it somehow, because it sorts it as expected without the "^Z" in it:
% lsort -dictionary "A Z a"
A a Z

ReproducibleScript:
Windows tclsh:
% lsort -dictionary "A Z ^Z a"
^Z A a Z

Linux tclsh:
% lsort -dictionary "A Z ^Z a"
A Z ^Z a

ObservedBehavior:
Windows tclsh and *nix tclsh sorts differently..

DesiredBehavior:
The Windows tclsh way is the one I expect and prefer!

Discussion

  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter

    Don Porter - 2001-04-13
    • labels: 104246 --> 17. Commands I-L
    • summary: [lsort -dictionary "A Z ^Z a"] sorts differently on Windows --> [lsort -dictionary "A Z ^Z a"] sorts differently on Windows
     
MongoDB Logo MongoDB