From owner-freebsd-questions Wed Dec 9 09:15:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA03810 for freebsd-questions-outgoing; Wed, 9 Dec 1998 09:15:59 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from trost.ravn.no (trost.ravn.no [193.215.220.235]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA03804 for ; Wed, 9 Dec 1998 09:15:56 -0800 (PST) (envelope-from reidar@ravn.no) Received: from gribb.ravn.no (gribb.ravn.no [193.215.220.237]) by trost.ravn.no (8.9.1/8.9.1) with SMTP id SAA14641 for ; Wed, 9 Dec 1998 18:15:44 +0100 (CET) Message-Id: <3.0.32.19981209181534.00a3295c@trost.ravn.no> X-Sender: reidar@trost.ravn.no X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Wed, 09 Dec 1998 18:15:35 +0100 To: freebsd-questions@FreeBSD.ORG From: Reidar Bratsberg Subject: Locale: LC_COLLATE error? Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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æøå". 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