From owner-freebsd-questions Fri Jul 23 11: 1: 6 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bastuba.partitur.se (bastuba.partitur.se [193.219.246.194]) by hub.freebsd.org (Postfix) with ESMTP id CE1D415640 for ; Fri, 23 Jul 1999 11:00:53 -0700 (PDT) (envelope-from girgen@partitur.se) Received: from partitur.se (elbas.partitur.se [193.219.246.222]) by bastuba.partitur.se (8.8.8/8.8.8) with ESMTP id UAA13183; Fri, 23 Jul 1999 20:00:21 +0200 (CEST) (envelope-from girgen@partitur.se) Message-ID: <3798ADB5.346B8E0C@partitur.se> Date: Fri, 23 Jul 1999 20:00:21 +0200 From: Palle Girgensohn Organization: Partitur X-Mailer: Mozilla 4.61 [en] (X11; I; FreeBSD 3.2-STABLE i386) X-Accept-Language: sv, en MIME-Version: 1.0 To: Peter Olsson Cc: freebsd-questions@freebsd.org Subject: Re: How make sort understand international characters? References: Content-Type: multipart/mixed; boundary="------------E32572365D57F9BA2A9F0BAC" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------E32572365D57F9BA2A9F0BAC Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Peter Olsson wrote: > = > We are trying to sort a file containing swedish national characters > on FreeBSD 2.2.8. FreeBSD has ISO-8859-1 character set. > = > Sort makes the swedish =C5 and =C4 appear after A and =D6 appear after = O > instead of them being last in the alphabet. > = > Anyone know a solution to this? > = > Thanks! > = > -- > Peter Olsson pol@leissner.se > = > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message Hej Peter! Glad you brought it up! Here's a patch to /usr/src/usr.bin/colldef/data cd into that dir, patch < sc_SE.diff, cd .. and make install There's one bitch about this before I send it for commitment; the (v,w) should make v and w sort interchangeable, which the correct way in Swedish. This does not work. Apart from that, it seems to work great. Ha en trevlig sommar! /Palle --------------E32572365D57F9BA2A9F0BAC Content-Type: text/plain; charset=us-ascii; name="sv_SE.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sv_SE.diff" --- Makefile.orig Tue Jul 13 02:56:52 1999 +++ Makefile Tue Jul 13 02:58:33 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} --- sv_SE.DIS_8859-15.src.orig Tue Jul 13 02:56:12 1999 +++ sv_SE.DIS_8859-15.src Tue Jul 13 03:01:46 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>;;;
;\ +# remains + <-a>;;<-o> --------------E32572365D57F9BA2A9F0BAC-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
;\ +# remains + <-a>;<-o> --- sv_SE.ISO_8859-1.src.orig Wed May 26 15:25:46 1999 +++ sv_SE.ISO_8859-1.src Tue Jul 13 02:55:58 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>;;;