On 09/24/2014 10:40 AM, Göran Uddeborg wrote:
Drats!  I felt so proud after the last paragraph of your first
comment! :-)

I would like to chime in with thanks for reporting this bug, which is a real howler. To help the Fedora folks squash it I installed the attached test case upstream. This test succeeds with upstream 'sort' but fails with the Fedora 20 version.
>From cbc9c9496d79a6833258d834e975594540e200fd Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Wed, 24 Sep 2014 11:55:20 -0700
Subject: [PATCH] test: check for Fedora 20 sort key bug
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Problem reported by Göran Uddeborg in: http://bugs.gnu.org/18540
* tests/misc/sort.pl: New test 23.
---
 tests/misc/sort.pl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/misc/sort.pl b/tests/misc/sort.pl
index db73209..3961f4f 100755
--- a/tests/misc/sort.pl
+++ b/tests/misc/sort.pl
@@ -317,6 +317,10 @@ my @Tests =
 ["22a", '-k 2,2fd -k 1,1r', {IN=>"3 b\n4 B\n"}, {OUT=>"4 B\n3 b\n"}],
 ["22b", '-k 2,2d  -k 1,1r', {IN=>"3 b\n4 b\n"}, {OUT=>"4 b\n3 b\n"}],
 
+# This fails in Fedora 20, per Göran Uddeborg in: http://bugs.gnu.org/18540
+["23", '-s -k1,1 -t/', {IN=>"a b/x\na-b-c/x\n"}, {OUT=>"a b/x\na-b-c/x\n"},
+ {ENV => "LC_ALL=$mb_locale"}],
+
 ["no-file1", 'no-file', {EXIT=>2}, {ERR=>$no_file}],
 # This test failed until 1.22f.  Sort didn't give an error.
 # From Will Edgington.
-- 
1.9.3

Reply via email to