Date: Tue, 21 Dec 1999 17:10:03 -0800 (PST) From: "Andrey A. Chernov" <ache@freebsd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/15458: sort(1) doesn't sort correctly in some cases Message-ID: <199912220110.RAA75705@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: "Andrey A. Chernov" <ache@freebsd.org> To: cejkar@dcse.fee.vutbr.cz Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/15458: sort(1) doesn't sort correctly in some cases Date: Tue, 21 Dec 1999 17:06:47 -0800 On Mon, Dec 13, 1999 at 02:01:02PM +0100, cejkar@dcse.fee.vutbr.cz wrote: > Sort(1) doesn't work in some cases for some locales. In cs_CZ.ISO_8859-2 > (will be shortly commited; maybe similar problem could be seen with es_ES) > there is collation definition: > > (H,h);\ > (CH,Ch,ch);\ > (I,i);\ > Here is my patch for /usr/src/gnu/usr.bin/sort/sort.c: 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. 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. -- Andrey A. Chernov http://nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y 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?199912220110.RAA75705>