Bug 1003544 - Multi-byte patch breaks sorting by non-first field
Summary: Multi-byte patch breaks sorting by non-first field
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Oprala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1055597 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-02 10:21 UTC by Petr Pisar
Modified: 2015-01-16 03:36 UTC (History)
8 users (show)

Fixed In Version: coreutils-8.21-20.fc20
Clone Of:
Environment:
Last Closed: 2014-01-09 07:36:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.