Date: Wed, 9 Dec 1998 21:55:41 +0100 From: Gunnar Flygt <gunnar@pluto.sr.se> To: Reidar Bratsberg <reidar@ravn.no> Cc: FreeBSD Questions <questions@FreeBSD.ORG> Subject: Re: Locale: LC_COLLATE error? Message-ID: <19981209215541.C16052@sr.se> In-Reply-To: <3.0.32.19981209181534.00a3295c@trost.ravn.no>; from Reidar Bratsberg on Wed, Dec 09, 1998 at 06:15:35PM %2B0100 References: <3.0.32.19981209181534.00a3295c@trost.ravn.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Dec 09, 1998 at 06:15:35PM +0100, Reidar Bratsberg wrote:
>
> I'm baffled, trying to understand the Locale for FreeBSD
> 2.2.7-RELEASE. It seems there's an error with LC_COLLATE
> as (in my case) Norwegian characters won't sort/compare
> correctly.
>
> My /usr/share/locale/no_NO.ISO_8859-1/ shows:
>
> LC_COLLATE -> ../lt_LN.ISO_8859-1/LC_COLLATE
> LC_CTYPE -> ../lt_LN.ISO_8859-1/LC_CTYPE
> LC_TIME
>
> This is from the standard distribution.
>
> My perl test script to check this is (just using Perl for
> testing, it's the same result in other programs):
>
> #!/usr/bin/perl
>
> use POSIX qw(locale_h);
>
> setlocale(LC_CTYPE, "no_NO.ISO_8859-1");
> setlocale(LC_COLLATE, "no_NO.ISO_8859-1");
>
> @a = ('å', 'a', 'æ', 'e', 'ø');
>
> print sort(@a), "\n";
>
>
> This returns "aeåæø", which should be "aeæøå".
Seems it follows how it would be sorted in Swedish!
>
> Now, I've been trying to generate my own LC_COLLATE from
> a standard "source document" from the Norwegian standard
> commission. For this, I understand, localedef should be
> used. Localedef however, is only available from the GNU
> clib, and compiling/installing that is more than I really
> want to cope with now :-).
>
> Why the links the lt_LN.ISO_8859-1?
>
> Any ideas? Or if someone has a working LC_CTYPE, LC_COLLATE
> for Norwegian, I would appreciate it.
>
>
> Best,
> Reidar
>
>
> --
> Reidar Bratsberg. Ravn Webveveriet AS,
> Telefon: 22 37 97 00 Fax: 22 37 97 01 Firmapost: ravn@ravn.no
> Public PGP-key available at http://www.ravn.no/~reidar/
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
--
__o
regards, Gunnar ---_ \<,_
email: flygt@sr.se ---- (_)/ (_)
If Bill Gates had a dime for every time a Windows box crashed...
.. Oh, wait a minute, he already does."
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981209215541.C16052>
