Bug 6569
Summary: | sort util broken | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | hajic |
Component: | textutils | Assignee: | Preston Brown <pbrown> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | hajic |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-01-14 03:46:38 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
After getting a reply (and suggestion) from Jim Meyering <meyering> (after sending a copy of the bug report to bug-textutils), I tried unsetenv LANG and it helped. (Unlike unsetenv LC_ALL, which had no effect.) Therefore your en_US tables (or possibly other as well!) must be corrupted, since they should not influence the sorting of # in any way, right? -- Jan Hajic *** Bug 6762 has been marked as a duplicate of this bug. *** sort is correctly following the LC_COLLATE settings for en_US. if you want POSIX behaviour, you have to request it explicitly (unset LANG/LC_COLLATE, or set LC_COLLATE=C). |
sort does not sort correctly. sort this using the 5.2 sort and the "new" 6.1 sort: AFD7#@ AFD71@ AFD71@-6 AFD71A AFD71A-6 AFD7#@-6 AFP1#@ AFP11@ AFP11@-6 AFP11A and you get different results. Environment: Linux "out-of-the-box" RH 6.1 tcsh 6.08 (from RH 6.1, unmodified), no locale set (LC_ALL=en_US; I also tried with LC_ALL unset, same problem; yes I know for data like the above it should not make any difference). After running this ('file' is the above 10-line file): sort.52 file > file.52.srt # using RH's 5.2. sort sort.61 file > file.61.srt # RH 6.1 sort diff file.52.srt file.61.srt I got this: 2d1 < AFD7#@-6 6a6 > AFD7#@-6 -- Jan Hajic