Date: Sun, 22 Jun 2003 00:49:06 +0200 From: "Vahe Khachikyan" <vahe@khachikyan.de> To: <freebsd-i18n@freebsd.org> Cc: Ruslan Ermilov <ru@FreeBSD.org> Subject: BUG in collate routines?!(Moved from hackers) Message-ID: <005701c33847$52707100$0700010a@workstation> References: <20030621105319.GA79236@sunbay.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org> To: <vahe@khachikyan.de> Sent: Saturday, June 21, 2003 12:53 PM Subject: [ache@nagual.pp.ru: Re: [vahe@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@sunbay.com Sunbay Software Ltd, > ru@FreeBSD.org FreeBSD committer > Date: Sat, 21 Jun 2003 00:57:59 +0200 > From: Vahe Khachikyan <vahe@khachikyan.de> > Subject: BUG in collate routines?! > To: FreeBSD Hackers <freebsd-hackers@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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?005701c33847$52707100$0700010a>