Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Jul 1999 20:00:21 +0200
From:      Palle Girgensohn <girgen@partitur.se>
To:        Peter Olsson <pol@leissner.se>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How make sort understand international characters?
Message-ID:  <3798ADB5.346B8E0C@partitur.se>
References:  <Pine.BSF.4.05.9907221902380.11986-100000@nic-i.leissner.se>

next in thread | previous in thread | raw e-mail | index | archive | help
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
+	<NU>;...;<US>;<PA>;...;<AC>;\
+#
+	<NS>;<SP>;!;<!I>;\";<<<>;</>/>>;<Nb>;\
+	<Eu>;<Ct>;<DO>;<Pd>;<Ye>;\
+	%;&;';\(;\);*;+;<+->;<-:>;<*X>;\,;<-->;-;.;/;\
+# digits
+	0;(1,<1S>);(2,<2S>);(3,<3S>);4;...;9;\
+#
+	:;\;;\<;=;>;?;<?I>;<SE>;<PI>;<Co>;<Rg>;<At>;\
+# capital
+	(A,<A'>,<A!>,<A/>>,<A?>);\
+	B;(C,<C,>);(D,<D->);(E,<E'>,<E!>,<E/>>,<E:>);\
+	F;G;H;(I,<I'>,<I!>,<I/>>,<I:>);\
+	J;...;M;(N,<N?>);(O,<O'>,<O!>,<O?>,<O/>>,<OE>);\
+	P;Q;R;(S,<S<>);T;(U,<U'>,<U!>,<U/>>,<U:>);\
+	(V,W);X;(Y,<Y'>,<Y:>);(Z,<Z<>);<AA>;(<A:>,<AE>);(<O:>,<O//>);\
+	<TH>;\
+#
+	[;\\;];^;_;<'m>;`;\
+# small
+	(a,<a'>,<a!>,<a/>>,<a?>);\
+	b;(c,<c,>);(d,<d->);(e,<e'>,<e!>,<e/>>,<e:>);\
+	f;g;h;(i,<i'>,<i!>,<i/>>,<i:>);\
+	j;...;m;(n,<n?>);(o,<o'>,<o!>,<o?>,<o/>>,<oe>);\
+	p;q;r;(s,<s<>,<ss>);t;(u,<u'>,<u!>,<u/>>,<u:>);\
+	(v,w);x;(y,<y'>,<y:>);(z,<z<>);<aa>;(<a:>,<ae>);(<o:>,<o//>);\
+	<th>;\
+#
+	\{;<NO>;|;\};~;<.M>;<DG>;<My>;<DT>;\
+# 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
+	<NU>;...;<US>;<PA>;...;<AC>;\
+#
+	<NS>;<SP>;!;<!I>;\";<<<>;</>/>>;<Nb>;\
+	<Cu>;<Ct>;<DO>;<Pd>;<Ye>;\
+	%;&;<',>;';\(;\);*;+;<+->;<-:>;<*X>;\,;<-->;-;.;/;\
+# digits
+	(0,<14>,<12>,<34>);(1,<1S>);(2,<2S>);(3,<3S>);4;...;9;\
+#
+	:;\;;\<;=;>;?;<?I>;<SE>;<PI>;<Co>;<Rg>;<At>;\
+# capital
+	(A,<A'>,<A!>,<A/>>,<A?>);\
+	B;(C,<C,>);(D,<D->);(E,<E'>,<E!>,<E/>>,<E:>);\
+	F;G;H;(I,<I'>,<I!>,<I/>>,<I:>);\
+	J;...;M;(N,<N?>);(O,<O'>,<O!>,<O?>,<O/>>);\
+	P;...;T;(U,<U'>,<U!>,<U/>>,<U:>);\
+	(V,W);X;(Y,<Y'>);Z;<AA>;(<A:>,<AE>);(<O:>,<O//>);\
+	<TH>;\
+#
+	[;\\;];^;<':>;_;<'m>;<''>;`;\
+# small
+	(a,<a'>,<a!>,<a/>>,<a?>);\
+	b;(c,<c,>);(d,<d->);(e,<e'>,<e!>,<e/>>,<e:>);\
+	f;g;h;(i,<i'>,<i!>,<i/>>,<i:>);\
+	j;...;m;(n,<n?>);(o,<o'>,<o!>,<o?>,<o/>>);\
+	p;...;t;(u,<u'>,<u!>,<u/>>,<u:>);\
+	(v,w);x;(y,<y'>,<y:>);z;<aa>;(<a:>,<ae>);(<o:>,<o//>);\
+	<th>;\
+#
+	\{;<NO>;|;<BB>;\};~;<.M>;<DG>;<My>;<DT>;\
+# remains
+	<-a>;<ss>;<-o>

--------------E32572365D57F9BA2A9F0BAC--



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?3798ADB5.346B8E0C>