From owner-freebsd-bugs Thu Sep 23 18: 0: 9 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id AA06E160BD for ; Thu, 23 Sep 1999 18:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA80806; Thu, 23 Sep 1999 18:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from mailc.telia.com (mailc.telia.com [194.22.190.4]) by hub.freebsd.org (Postfix) with ESMTP id 609DC14D31 for ; Thu, 23 Sep 1999 17:55:11 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from d1o62.telia.com (root@d1o62.telia.com [195.198.198.241]) by mailc.telia.com (8.8.8/8.8.8) with ESMTP id CAA06861 for ; Fri, 24 Sep 1999 02:54:45 +0200 (CEST) Received: from stordatan.telia.com (t2o62p16.telia.com [195.198.198.76]) by d1o62.telia.com (8.8.5/8.8.5) with ESMTP id CAA09235 for ; Fri, 24 Sep 1999 02:54:43 +0200 (CEST) Received: (from girgen@localhost) by stordatan.telia.com (8.9.3/8.9.1) id CAA40997; Fri, 24 Sep 1999 02:54:31 +0200 (CEST) (envelope-from girgen@partitur.se) Message-Id: <199909240054.CAA40997@stordatan.telia.com> Date: Fri, 24 Sep 1999 02:54:31 +0200 (CEST) From: girgen@partitur.se Reply-To: girgen@partitur.se To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/13928: Patch for Swedish LC_COLLATE Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13928 >Category: bin >Synopsis: Patch for Swedish LC_COLLATE >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 23 18:00:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Palle Girgensohn >Release: FreeBSD 3.3-STABLE i386 >Organization: Partitur >Environment: Tested with most FreeBSD-3-RELENGs sort and postgresql used for application testing >Description: Swedish sorting order is completey wrong in all versions of FreeBSD up till today. This patch tries to fix this. I say _tries_ because a truly correct sorting order in Swedish would sort 'V' and 'W' interchangebly, i.e. Waldemar and Valdemar has the same 'value', and Waldamar will sort before Valdemar. Same goes for Norwegian '' and '', which probably should together with and respectively. I've tried enclosing the character groups in both () and {}, the latter which somewhat cryptically is stated in the manual to give the characters the same primary value only. The act the same, though :( Apart from these drawbacks, this patch is rather important for Swedish users who want to use the FreeBSD platform with for example databases. They are expected to sort correctly, but they don't. Please commit this patch. :-) >How-To-Repeat: How to test it: - patch - rebuild world (or relevant parts thereof [which aren't just colldef]) - export LC_COLLATE=sv_SE.ISO_8859-1 cat | sort Adam Ådaa Odem Öde Äta Att ^D You should get: Adam Att Odem Ådaa Äta Öde >Fix: --- usr.bin/colldef/data/Makefile.orig Tue Jul 20 19:50:52 1999 +++ usr.bin/colldef/data/Makefile Sat Aug 7 04:20:14 1999 @@ -14,7 +14,9 @@ lt_LN.ISO_8859-1 \ lt_LN.ISO_8859-2 \ ru_SU.CP866 \ - ru_SU.KOI8-R + ru_SU.KOI8-R \ + sv_SE.DIS_8859-15 \ + sv_SE.ISO_8859-1 LOCALEDIR= ${DESTDIR}/usr/share/locale @@ -26,7 +28,7 @@ LATIN1LINKS = \ da_DK en_AU en_CA en_GB en_US fi_FI \ fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \ - pt_PT sv_SE + pt_PT LATIN2LINKS = hr_HR hu_HU pl_PL sl_SI @@ -51,6 +53,8 @@ lt_LN.ISO_8859-2.out: map.ISO_8859-2 ru_SU.CP866.out: map.CP866 ru_SU.KOI8-R.out: map.KOI8-R +sv_SE.DIS_8859-15.out: map.DIS_8859-15 +sv_SE.ISO_8859-1.out: map.ISO_8859-1 afterinstall: .for locale in ${LOCALES} --- /dev/null Sat Aug 7 04:17:30 1999 +++ usr.bin/colldef/data/sv_SE.ISO_8859-1.src Sat Aug 7 04:20:14 1999 @@ -0,0 +1,40 @@ +# Swedish/ISO 8859-1 (backward compatible with ASCII) +# +# (Based on the German de_DE.ISO_8859-1) +# +# $Id: $ +# +charmap map.ISO_8859-1 +order \ +# controls + ;...;;;...;;\ +# + ;;!;;\";<<<>;/>>;;\ + ;;;;;\ + %;&;<',>;';\(;\);*;+;<+->;<-:>;<*X>;\,;<-->;-;.;/;\ +# digits + (0,<14>,<12>,<34>);(1,<1S>);(2,<2S>);(3,<3S>);4;...;9;\ +# + :;\;;\<;=;>;?;;;;;;;\ +# capital + (A,,,>,);\ + B;(C,);(D,);(E,,,>,);\ + F;G;H;(I,,,>,);\ + J;...;M;(N,);(O,,,,>);\ + P;...;T;(U,,,>,);\ + (V,W);X;(Y,);Z;;(,);(,);\ + ;\ +# + [;\\;];^;<':>;_;<'m>;<''>;`;\ +# small + (a,,,>,);\ + b;(c,);(d,);(e,,,>,);\ + f;g;h;(i,,,>,);\ + j;...;m;(n,);(o,,,,>);\ + p;...;t;(u,,,>,);\ + (v,w);x;(y,,);z;;(,);(,);\ + ;\ +# + \{;;|;;\};~;<.M>;;;
;\ +# remains + <-a>;<-o> >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
;\ +# remains + <-a>;;<-o> --- /dev/null Sat Aug 7 04:17:30 1999 +++ usr.bin/colldef/data/sv_SE.DIS_8859-15.src Sat Aug 7 04:20:14 1999 @@ -0,0 +1,40 @@ +# Swedish/DIS 8859-15 (backward compatible with ASCII) +# +# (Based on the German de_DE.DIS_8859-15) +# +# $Id: $ +# +charmap map.DIS_8859-15 +order \ +# controls + ;...;;;...;;\ +# + ;;!;;\";<<<>;/>>;;\ + ;;;;;\ + %;&;';\(;\);*;+;<+->;<-:>;<*X>;\,;<-->;-;.;/;\ +# digits + 0;(1,<1S>);(2,<2S>);(3,<3S>);4;...;9;\ +# + :;\;;\<;=;>;?;;;;;;;\ +# capital + (A,,,>,);\ + B;(C,);(D,);(E,,,>,);\ + F;G;H;(I,,,>,);\ + J;...;M;(N,);(O,,,,>,);\ + P;Q;R;(S,);T;(U,,,>,);\ + (V,W);X;(Y,,);(Z,);;(,);(,);\ + ;\ +# + [;\\;];^;_;<'m>;`;\ +# small + (a,,,>,);\ + b;(c,);(d,);(e,,,>,);\ + f;g;h;(i,,,>,);\ + j;...;m;(n,);(o,,,,>,);\ + p;q;r;(s,,);t;(u,,,>,);\ + (v,w);x;(y,,);(z,);;(,);(,);\ + ;\ +# + \{;;|;\};~;<.M>;;;