Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Dec 1999 06:20:01 -0800 (PST)
From:      Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/15458: sort(1) doesn't sort correctly in some cases
Message-ID:  <199912221420.GAA44925@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/15458; it has been noted by GNATS.

From: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
To: "Andrey A. Chernov" <ache@FreeBSD.ORG>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/15458: sort(1) doesn't sort correctly in some cases
Date: Wed, 22 Dec 1999 15:18:22 +0100

 Andrey A. Chernov wrote (1999/12/21):
 > It is general problem in GNU sort which compare strings character-by-character.
 > Your patch not helps, if f.e. ignore case or skip blanks flags are given.
 
 At this poing you are right.
 
 > Correct patch require big redesign of sort. Try to contact GNU sort
 > maintainers first to ask them to fix this bug in future sort versions.
 
 We should not contact GNU sort maintainers because this is FreeBSD
 specific problem: In our source tree there is a very old patched
 sort-1.14 and they have sort-2.0 already. And sort-2.0 works much better
 and hasn't this problem.
 
 So the best solution should be to import sort-2.0 from textutils-2.0.
 I have tried this and it looks it works: We have to configure textutils-2.0
 with "configure --with-catgets" and copy-out these files: COPYING, 
 intl/cat-compat.c, po/cat-id-tbl.c, lib/closeout.[ch], config.h,
 lib/error.[ch], lib/getopt.[ch], lib/getopt1.c, lib/hard-locale.[ch],
 intl/libgettext.h, intl/libintl.h, lib/long-options.[ch], lib/memcoll.[ch],
 man/sort.1, src/sort.c, src/sys2.h, src/system.h, lib/version-etc.[ch],
 lib/xalloc.h and lib/xmalloc.c. After this in Makefile we have to define
 all *.c as SRCS and add -DLOCALEDIR=\"/usr/share/nls\" and it works.
 
 But I expect another problems again there ;-)
 
 -- 
 Rudolf Cejka   (cejkar@dcse.fee.vutbr.cz;  http://www.fee.vutbr.cz/~cejkar)
 Brno University of Technology, Faculty of El. Engineering and Comp. Science
 Bozetechova 2, 612 66  Brno, Czech Republic
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912221420.GAA44925>