BUG in collate routines?!(Moved from hackers)
Vahe Khachikyan
vahe at khachikyan.de
Sat Jun 21 15:49:08 PDT 2003
Hi ,
Ruslan thank you for your answer.
Your forwarded test program works correctly.
Sorry for missleading information I think my problem was with the sort which
does strange sorting ...
The sort version is probably quite old
-------------
/* $FreeBSD: src/gnu/usr.bin/sort/sort.c,v 1.15.2.4 2002/04/17 11:41:42 ache
Exp $ */
---------------
os version FreeBSD 4.8-RC it does the same on Alpha and on x386 platforms
with 4.8-RC
and just one week old 4.8 -stable.
I assume that the sort have no clue of ligatures or comparision of strings
with ligatures
Assumpsion of sort being an old version based on fact that , sort under
Linux works correctly.
--
Vahe Khachikyan
---
----- Original Message -----
From: "Ruslan Ermilov" <ru at FreeBSD.org>
To: <vahe at khachikyan.de>
Sent: Saturday, June 21, 2003 12:53 PM
Subject: [ache at nagual.pp.ru: Re: [vahe at khachikyan.de: BUG in collate
routines?!]]
On Sat, Jun 21, 2003 at 11:41:29 +0300, Ruslan Ermilov wrote:
> In case you didn't get this...
I not read hackers.
His information is wrong, test program included:
#include <locale.h>
main() {
setlocale(LC_COLLATE, "de_DE.ISO8859-1");
printf("%d\n",strcoll("\xdf", "sr"));
printf("%d\n",strcoll("\xdf", "ss"));
printf("%d\n",strcoll("\xdf", "st"));
}
>
> --
> Ruslan Ermilov Sysadmin and DBA,
> ru at sunbay.com Sunbay Software Ltd,
> ru at FreeBSD.org FreeBSD committer
> Date: Sat, 21 Jun 2003 00:57:59 +0200
> From: Vahe Khachikyan <vahe at khachikyan.de>
> Subject: BUG in collate routines?!
> To: FreeBSD Hackers <freebsd-hackers at freebsd.org>
> X-Mailer: Microsoft Outlook Express 6.00.2800.1158
>
> Hi ,
>
> I was making a new locale for Armenian and it seams that found a bug in
> substitute routines.
> The problem is, that the colldef with substitution seams to have a buggy
> behaviour.
> When a locale has a LC_COLLATE defined with a substitution like German 'ß'
> which is
> substituted with 'ss', then a strcoll of strings 'sr' and 'ß' returns the
> same value like
> strcoll of 'st' and 'ß'. The colldef file for de_DE.ISO8859-1 says that
the
> german ligature
> 'ß' should be substituded with 'ss'.
> I hope that I understood the meaning of substitude in colldef correctly,
at
> least on Linux it works
> as awaited.
>
> Should we make a patch for libc or is this a correct behaviour?
>
> --
> Vahe Khachikyan
> ---
>
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-i18n
mailing list