From owner-freebsd-bugs Wed Dec 22 6:20: 7 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id ED6871502A for ; Wed, 22 Dec 1999 06:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id GAA44925; Wed, 22 Dec 1999 06:20:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Wed, 22 Dec 1999 06:20:01 -0800 (PST) Message-Id: <199912221420.GAA44925@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Cejka Rudolf Subject: Re: bin/15458: sort(1) doesn't sort correctly in some cases Reply-To: Cejka Rudolf Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/15458; it has been noted by GNATS. From: Cejka Rudolf To: "Andrey A. Chernov" 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