Bug 428679
Summary: | Sort behaves as if the -b and -d options are always set | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Harold Kornylak <kornylak> |
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 8 | CC: | twaugh |
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: | 2008-01-14 17:52:25 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: |
Description
Harold Kornylak
2008-01-14 15:35:04 UTC
As written in man pages: *** WARNING *** The locale specified by the environment affects sort order. Set LC_ALL=C to get the traditional sort order that uses native byte values. You are using en_US locale, which gives you output as is in actual results. With LC_ALL=C you will get: a a A Z _Z _a a aa - sorted by common ASCII table and no leading space skipped. So sorry, but NOTABUG for me - expected behaviour for that locale. So your problem has nothing to do with -b and -d always set, but more with locales (I checked the sourcecode quickly and -b -d are not always set in sort.c code). Feel free to reopen it if I missed something. You could ask about that behaviour in upstream mailing list if you really think that this behaviour is buggy(bug-coreutils). |