conf/120113: [patch] Croatian locale support for hr_HR.ISO8859-2
Simun Mikecin
numisemis at yahoo.com
Tue Jan 29 12:50:01 UTC 2008
>Number: 120113
>Category: conf
>Synopsis: [patch] Croatian locale support for hr_HR.ISO8859-2
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Jan 29 12:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Simun Mikecin
>Release: 7.0-RC1 amd64
>Organization:
>Environment:
FreeBSD xxx 7.0-RC1 FreeBSD 7.0-RC1 #0: Tue Jan 22 14:58:57 CET 2008 root at xxx:/usr/obj/usr/src.7.0/sys/XXX amd64
>Description:
This is a patch that adds support for the Croatian locale support.
Without this patch /usr/share/locale/hr_HR.ISO8859-2/LC_COLLATE is a link to the ../la_LN.ISO8859-2/LC_COLLATE. It means that there is no support for Croatian locale.
P.S. I hope this gets commited to the RELENG_7_0 branch before release...
>How-To-Repeat:
Try with a simple C program by using setlocale(3) and strcoll(3).
>Fix:
Patch attached with submission follows:
diff -urN /usr/src.7.0/.zfs/snapshot/orig/share/colldef/Makefile /usr/src.7.0/share/colldef/Makefile
--- /usr/src.7.0/.zfs/snapshot/orig/share/colldef/Makefile 2006-11-09 19:10:33.000000000 +0100
+++ /usr/src.7.0/share/colldef/Makefile 2008-01-29 13:42:05.676646799 +0100
@@ -14,6 +14,7 @@
es_ES.ISO8859-15 \
et_EE.ISO8859-15 \
hi_IN.ISCII-DEV \
+ hr_HR.ISO8859-2 \
hy_AM.ARMSCII-8 \
is_IS.ISO8859-1 \
is_IS.ISO8859-15 \
@@ -68,7 +69,7 @@
nn_NO no_NO pt_PT
ISO8859-15_ISO8859-15= de_DE:de_AT de_DE:de_CH ${LATIN1LINKS:C/^/la_LN:/}
-LATIN2LINKS= hr_HR hu_HU ro_RO sr_YU
+LATIN2LINKS= hu_HU ro_RO sr_YU
ISO8859-2_ISO8859-2= ${LATIN2LINKS:C/^/la_LN:/} cs_CZ:sk_SK
US-ASCII_Big5HKSCS= la_LN:zh_HK
diff -urN /usr/src.7.0/.zfs/snapshot/orig/share/colldef/hr_HR.ISO8859-2.src /usr/src.7.0/share/colldef/hr_HR.ISO8859-2.src
--- /usr/src.7.0/.zfs/snapshot/orig/share/colldef/hr_HR.ISO8859-2.src 1970-01-01 01:00:00.000000000 +0100
+++ /usr/src.7.0/share/colldef/hr_HR.ISO8859-2.src 2008-01-29 12:07:27.350025032 +0100
@@ -0,0 +1,39 @@
+#
+# Croatian collation sequence
+# 2007-01-29 numisemis at yahoo dot com
+#
+# $FreeBSD$
+#
+
+charmap map.ISO8859-2
+order \
+# controls
+ <NU>;...;<US>;<PA>;...;<AC>;\
+#
+ <NS>;<SP>;!;\";<Nb>;\
+ <Cu>;<DO>;\
+ %;&;<',>;<';>;';\(;\);*;+;<-:>;<*X>;\,;<-->;-;.;<'.>;/;\
+# digits
+ 0;...;9;\
+#
+ :;\;;\<;=;>;?;<SE>;<At>;\
+# capital
+ (A,<A'>,<A/>>,<A:>,<A;>,<A(>);\
+ B;(C,<C,>);<C<>;<C'>;(D,<D<>);<D//>;(E,<E'>,<E:>,<E;>,<E<>);\
+ F;G;H;(I,<I'>,<I/>>);\
+ J;K;(L,<L//>,<L<>,<L'>);M;(N,<N'>,<N<>);(O,<O'>,<O/>>,<O:>,<O">);\
+ P;Q;(R,<R'>,<R<>);(S,<S'>,<S,>);<S<>;(T,<T<>,<T,>);\
+ (U,<U'>,<U:>,<U0>,<U">);\
+ V;W;X;(Y,<Y'>);(Z,<Z'>,<Z.>);<Z<>;\
+#
+ [;\\;];^;<':>;<'">;<'<>;<'(>;_;<''>;`;\
+# small
+ (a,<a'>,<a/>>,<a:>,<a;>,<a(>);\
+ b;(c,<c,>);<c<>;<c'>;(d,<d<>);<d//>;(e,<e'>,<e:>,<e;>,<e<>);\
+ f;g;h;(i,<i'>,<i/>>);\
+ j;k;(l,<l//>,<l<>,<l'>);m;(n,<n'>,<n<>);(o,<o'>,<o/>>,<o:>,<o">);\
+ p;q;(r,<r'>,<r<>);(s,<s'>,<s,>,<ss>);<s<>;(t,<t<>,<t,>);\
+ (u,<u'>,<u:>,<u0>,<u">);\
+ v;w;x;(y,<y'>);(z,<z'>,<z.>);<z<>;\
+#
+ \{;|;\};~;<DG>;<DT>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list