Bug 1003544

Summary: Multi-byte patch breaks sorting by non-first field
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: coreutilsAssignee: Ondrej Oprala <ooprala>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, kdudka, kzak, ooprala, ovasik, p, tom, twaugh
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: coreutils-8.21-20.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-09 07:36:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Pisar 2013-09-02 10:21:43 UTC
coreutils-8.21-18 breaks sorting by non-first field:

$ cat test 
x  A 1
x  B 1
xx A 2
xx B 2
$ <test sort -k2
x  A 1
x  B 1
xx A 2
xx B 2
$ rpm -qf $(type -p sort)
coreutils-8.21-18.fc20.x86_64

This is a regression against 8.21-16:

$ rpm -qf $(type -p sort)
coreutils-8.21-16.fc20.x86_64
$ <test sort -k2
x  A 1
xx A 2
x  B 1
xx B 2

This happens if field 1 (the x's) differs in length. It does not depend on locale.

Comment 1 Ondrej Vasik 2013-09-02 12:09:57 UTC
Thanks for report, most probably caused by the changes from http://pkgs.fedoraproject.org/cgit/coreutils.git/commit/coreutils-i18n.patch?id=0dcc5a0d5eb1554f4b5c0d2f2c8988b6b91e6553 ... Moving to the Ondrej Oprala, who was the author of the patch change.

Comment 2 Fedora Update System 2014-01-06 11:39:23 UTC
coreutils-8.21-20.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/coreutils-8.21-20.fc20

Comment 3 Fedora Update System 2014-01-07 09:38:12 UTC
Package coreutils-8.21-20.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing coreutils-8.21-20.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-0287/coreutils-8.21-20.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-01-09 07:36:32 UTC
coreutils-8.21-20.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Pádraig Brady 2015-01-16 03:36:51 UTC
*** Bug 1055597 has been marked as a duplicate of this bug. ***