Skip site navigation (1)Skip section navigation (2)
Date:      17 Jun 2002 09:53:36 -0000
From:      Michal Pasternak <doc@pasternak.w.lub.pl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   standards/39408: FreeBSD use wrong collate table for pl_PL.ISO8859-2 
Message-ID:  <20020617095336.62532.qmail@pr93.lublin.sdi.tpnet.pl>

next in thread | raw e-mail | index | archive | help

>Number:         39408
>Category:       standards
>Synopsis:       FreeBSD use wrong collate table for pl_PL.ISO8859-2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-standards
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 17 03:00:09 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Michal Pasternak
>Release:        FreeBSD 4.6-RC i386
>Organization:
>Environment:
System: FreeBSD pasternak.w.lub.pl 4.6-RC FreeBSD 4.6-RC #0: Sun Jun 16 02:18:35 CEST 2002 doc@pasternak.w.lub.pl:/usr/obj/usr/src/sys/ILIT i386


	
>Description:

   Sorting characters on FreeBSD with pl_PL.ISO8859-2 locale
   is wrong. Default file (collate for latin-2) doesnt sort
   polish native characters well.
   
   This PR is being sent after consulting about 30 people and
   a bit of discussion on pl.comp.os.freebsd; this issue should
   be fixed ASAP.
   
>How-To-Repeat:

   $ touch aa ab a± aca a±a aæa 
   $ setenv LC_ALL pl_PL.ISO8859-2
   $ ls -las
   
>Fix:
   Apply this diff in /usr/src:
      http://freebsd.w.lub.pl/locale.dif
   
   Copy this file to /usr/src/share/colldef:
      http://freebsd.w.lub.pl/pl_PL.ISO8859-2.src

Or use shar included below:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	locale.diff
#	pl_PL.ISO8859-2.src
#
echo x - locale.diff
sed 's/^X//' >locale.diff << 'END-of-locale.diff'
X--- share/colldef/Makefile.orig	Sat Jun 15 23:38:48 2002
X+++ share/colldef/Makefile	Sat Jun 15 23:43:35 2002
X@@ -19,6 +19,7 @@
X 		la_LN.ISO8859-4 \
X 		la_LN.US-ASCII \
X 		lt_LT.ISO8859-4 \
X+		pl_PL.ISO8859-2 \
X 		ru_RU.CP866 \
X 		ru_RU.ISO8859-5 \
X 		ru_RU.KOI8-R \
X@@ -38,7 +39,7 @@
X 		fr_BE fr_CA fr_CH fr_FR it_CH it_IT nl_BE nl_NL no_NO \
X 		pt_PT
X 
X-LATIN2LINKS=	hr_HR hu_HU pl_PL ro_RO sl_SI
X+LATIN2LINKS=	hr_HR hu_HU ro_RO sl_SI
X 
X .SUFFIXES: .src .out
X 
X@@ -61,6 +62,7 @@
X la_LN.ISO8859-1.out:    map.ISO8859-1
X la_LN.ISO8859-4.out:    map.ISO8859-4
X lt_LT.ISO8859-4.out:    map.ISO8859-4
X+pl_PL.ISO8859-2.out:    map.ISO8859-2
X ru_RU.CP866.out:        map.CP866
X ru_RU.ISO8859-5.out:    map.ISO8859-5
X ru_RU.KOI8-R.out:       map.KOI8-R
END-of-locale.diff
echo x - pl_PL.ISO8859-2.src
sed 's/^X//' >pl_PL.ISO8859-2.src << 'END-of-pl_PL.ISO8859-2.src'
X# Latin2 (for Polish) by Michal Pasternak <michal@pasternak.w.lub.pl> 
X# with much help from Adam Liberacki, Jan Srzednicki and Bartek Siebab
X#
X# $FreeBSD$
X#
Xcharmap map.ISO8859-2
Xsubstitute <ss> with "ss"
Xorder \
X# controls
X	<NU>;...;<US>;<PA>;...;<AC>;\
X# 
X	<NS>;<SP>;!;\";<Nb>;\
X	<Cu>;<DO>;\
X	%;&;<',>;<';>;';\(;\);*;+;<-:>;<*X>;\,;<-->;-;.;<'.>;/;\
X# digits
X	0;...;9;\
X# 
X	:;\;;\<;=;>;?;<SE>;<At>;\
X# capital and small
X	(A,a,<A/>>,<a/>>,<A(>,<a(>,<A:>,<a:>,<A'>,<a'>);\
X	(<A;>,<a;>);\
X	(B,b);\
X	(C,c,<C,>,<c,>,<C<>,<c<>);\
X	(<C'>,<c'>);\
X	(D,d,<D<>,<d<>,<D//>,<d//>);\
X	(E,e,<E<>,<e<>,<E:>,<e:>,<E'>,<e'>);\
X	(<E;>,<e;>);\
X	(F,f);\
X	(G,g);\
X	(H,h);\
X	(I,i,<I'>,<i'>,<I/>>,<i/>>);\
X	(J,j);\
X	(K,k);\
X	(L,l,<L'>,<l'>,<L<>,<l<>);\
X	(<L//>,<l//>);\
X	(M,m);\
X	(N,n,<N<>,<n<>);\
X	(<N'>,<n'>);\
X	(O,o,<O/>>,<o/>>,<O:>,<o:>,<O">,<o">);\
X	(<O'>,<o'>);\
X	(P,p);\
X	(Q,q);\
X	(R,r,<R'>,<r'>);\
X	(<R<>,<r<>);\
X	(S,s,<S,>,<s,>,<S<>,<s<>);\
X	(<S'>,<s'>);\
X	(T,t,<T<>,<t<>,<T,>,<t,>);\
X	(U,u,<U'>,<u'>,<U0>,<u0>,<U:>,<u:>,<U">,<u">);\
X	(V,v);\
X	(W,w);\
X	(X,x);\
X	(Y,y,<Y'>,<y'>);\
X	(Z,z,<Z<>,<z<>);\
X	(<Z'>,<z'>);\
X	(<Z.>,<z.>);\
X#	
X	[;\\;];^;<':>;<'">;<'<>;<'(>;_;<''>;`;\
X	\{;|;\};~;<DG>;<DT>
X
END-of-pl_PL.ISO8859-2.src
exit


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020617095336.62532.qmail>