Bug 118976 - [patch] [locale] Turkish locale support for tr_TR.ISO8859-9
Summary: [patch] [locale] Turkish locale support for tr_TR.ISO8859-9
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-i18n (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-23 21:00 UTC by Ismail YENIGUL
Modified: 2009-06-12 08:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.89 KB, patch)
2007-12-23 21:00 UTC, Ismail YENIGUL
no flags Details | Diff
tr_TR.ISO8859-9.diff2 (2.56 KB, application/octet-stream)
2007-12-24 09:30 UTC, Ismail YENIGUL
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ismail YENIGUL 2007-12-23 21:00:04 UTC
Please find the patch for the Turkish locale support of FreeBSD.
Normally, LC_COLLATE is link to the ../la_LN.US-ASCII/LC_COLLATE in
/usr/share/locale/tr_TR.ISO8859-9 directory.  It means that there is no
support for Turkish locale

I managed to give full Turkish locale support by modifying
/usr/src/share/colldef/la_LN.ISO8859-1.src file.

I made some tests, It is working fine.

Fix: diff -ruN /usr/src/share/colldef.orig/Makefile /usr/src/share/colldef/Makefile
--- /usr/src/share/colldef.orig/Makefile	Sun Dec 23 22:36:02 2007
+++ /usr/src/share/colldef/Makefile	Sun Dec 23 22:35:42 2007
@@ -34,6 +34,7 @@
 		sr_YU.ISO8859-5 \
 		sv_SE.ISO8859-1 \
 		sv_SE.ISO8859-15 \
+		tr_TR.ISO8859-9 \
 		uk_UA.CP1251 \
 		uk_UA.ISO8859-5 \
 		uk_UA.KOI8-U
@@ -79,7 +80,6 @@
 US-ASCII_GB18030= la_LN:zh_CN
 US-ASCII_GB2312= la_LN:zh_CN
 US-ASCII_GBK=	la_LN:zh_CN
-US-ASCII_ISO8859-9= la_LN:tr_TR
 US-ASCII_SJIS=	la_LN:ja_JP
 
 ASCIILINKS=	en_AU en_CA en_GB en_NZ en_US
diff -ruN /usr/src/share/colldef.orig/tr_TR.ISO8859-9.src /usr/src/share/colldef/tr_TR.ISO8859-9.src
--- /usr/src/share/colldef.orig/tr_TR.ISO8859-9.src	Thu Jan  1 02:00:00 1970
+++ /usr/src/share/colldef/tr_TR.ISO8859-9.src	Sun Dec 23 22:26:04 2007
@@ -0,0 +1,36 @@
+# latin1 (backward compatible with ASCII)
+#
+# $FreeBSD: src/share/colldef/la_LN.ISO8859-1.src,v 1.10 2001/06/10 13:43:47 ache Exp $
+#
+charmap map.ISO8859-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/>>,<AA>,<A:>,<A?>,<AE>);\
+	B;(C,<C,>);D;(E,<E'>,<E!>,<E/>>,<E:>);\
+	F;G;<D->;H;(I,<I'>,<I!>,<I/>>,<I:>);<Y'>;\
+	J;...;M;(N,<N?>);(O,<O'>,<O!>,<O/>>,<O:>,<O?>,<O//>);\
+	P;...;S;<TH>;T;(U,<U'>,<U!>,<U/>>,<U:>);\
+	V;W;X;Y;Z;\
+#
+	[;\\;];^;<':>;_;<'m>;<''>;`;\
+# small
+	(a,<a'>,<a!>,<a/>>,<aa>,<a:>,<a?>,<ae>);\
+	b;(c,<c,>);d;(e,<e'>,<e!>,<e/>>,<e:>);\
+	f;g;<d->;h;<y'>;(i,<i'>,<i!>,<i/>>,<i:>);\
+	j;...;m;(n,<n?>);(o,<o'>,<o!>,<o/>>,<o:>,<o?>,<o//>);\
+	p;...;s;<th>;t;(u,<u'>,<u!>,<u/>>,<u:>);\
+	v;w;x;(y,<y:>);z;<ss>;\
+#
+	\{;<NO>;|;<BB>;\};~;<.M>;<DG>;<My>;<DT>;\
+# remains
+	<-a>;<-o>


Patch attached with submission follows:
Comment 1 Андрей Чернов 2007-12-24 00:23:01 UTC
On Sun, Dec 23, 2007 at 08:53:42PM +0000, Ismail YENIGUL wrote:
> +++ /usr/src/share/colldef/tr_TR.ISO8859-9.src	Sun Dec 23 22:26:04 2007
> @@ -0,0 +1,36 @@
> +# latin1 (backward compatible with ASCII)
> +#
> +# $FreeBSD: src/share/colldef/la_LN.ISO8859-1.src,v 1.10 2001/06/10 13:43:47 ache Exp $
> +#
> +charmap map.ISO8859-1

It is wrong. You should use real map.ISO8859-9 to sort 8859-9 (Latin5)

-- 
http://ache.pp.ru/
Comment 2 Ismail YENIGUL 2007-12-24 07:24:38 UTC
Hello Andrey,

map.ISO8859-1 is identical to the map.ISO8859-9, for that reason  I
did not want to create extra file.

Monday, December 24, 2007, 2:23:01 AM, you wrote:

> On Sun, Dec 23, 2007 at 08:53:42PM +0000, Ismail YENIGUL wrote:
>> +++ /usr/src/share/colldef/tr_TR.ISO8859-9.src        Sun Dec 23 22:26:0=
4 2007
>> @@ -0,0 +1,36 @@
>> +# latin1 (backward compatible with ASCII)
>> +#
>> +# $FreeBSD: src/share/colldef/la_LN.ISO8859-1.src,v 1.10 2001/06/10 13:=
43:47 ache Exp $
>> +#
>> +charmap map.ISO8859-1

> It is wrong. You should use real map.ISO8859-9 to sort 8859-9 (Latin5)




--=20

Ismail YENIGUL
Y=F6netici/Manager
Servis ve Destek B=F6l=FCm=FC/System Services and Support Division
Tel: +90 216 344 07 15
Fax: +90 216 344 07 16
http://www.endersys.com.tr
Comment 3 Андрей Чернов 2007-12-24 08:04:30 UTC
On Mon, Dec 24, 2007 at 09:24:38AM +0200, Ismail YENIGUL wrote:
> Hello Andrey,
> 
> map.ISO8859-1 is identical to the map.ISO8859-9, for that reason  I
> did not want to create extra file.

This is not an acceptable way. map.ISO8859-9 should be different than
map.ISO8859-1 in the 6 chars. Their mnemonic names should be taken from
the ftp://std.dkuug.dk/i18n/charmaps/ISO_8859-9
You may also consult
https://stage.maemo.org/svn/maemo/projects/haf/trunk/posix-locales/locales/tr_TR

-- 
http://ache.pp.ru/
Comment 4 Ismail YENIGUL 2007-12-24 08:58:29 UTC
Andrey,

Ok, I got the point. But There are some issues that are not clear to
me.
1. I think that  ftp://std.dkuug.dk/i18n/charmaps/ISO_8859-1
corresponds to /usr/src/share/colldef/map.ISO8859-1 file on FreeBSD,
right? But the format is not absolutely same (eg: there is no such kind of
explanation "<U0001> START OF HEADING" etc. in  map.ISO8859-1 file)

2. When I issue diff -ruN ISO_8859-1 ISO_8859-9, I got the following
result:

-<D->                   /xD0   <U00D0> LATIN CAPITAL LETTER ETH (Icelandic)
+<G(>                   /xD0   <U011E> LATIN CAPITAL LETTER G WITH BREVE
..
-<Y'>                   /xDD   <U00DD> LATIN CAPITAL LETTER Y WITH ACUTE
-<TH>                   /xDE   <U00DE> LATIN CAPITAL LETTER THORN (Icelandi=
c)
+<I.>                   /xDD   <U0130> LATIN CAPITAL LETTER I WITH DOT ABOVE
+<S,>                   /xDE   <U015E> LATIN CAPITAL LETTER S WITH CEDILLA
...

Do you want to create map.ISO8859-9 by copying   map.ISO8859-1 and
change  <D-> as  G(> etc. in  map.ISO8859-9 file as well as
tr_TR.ISO8859-9.src?

3. what about https://stage.maemo.org/svn/maemo/projects/haf/trunk/posix-lo=
cales/locales/tr_TR
 Do I have to change/create something for this kind of file on
 FreeBSD?


Thanks.

Monday, December 24, 2007, 10:04:30 AM, you wrote:

> On Mon, Dec 24, 2007 at 09:24:38AM +0200, Ismail YENIGUL wrote:
>> Hello Andrey,
>>=20
>> map.ISO8859-1 is identical to the map.ISO8859-9, for that reason  I
>> did not want to create extra file.

> This is not an acceptable way. map.ISO8859-9 should be different than
> map.ISO8859-1 in the 6 chars. Their mnemonic names should be taken from
> the ftp://std.dkuug.dk/i18n/charmaps/ISO_8859-9
> You may also consult
> https://stage.maemo.org/svn/maemo/projects/haf/trunk/posix-locales/locale=
s/tr_TR




--=20

Ismail YENIGUL
Y=F6netici/Manager
Servis ve Destek B=F6l=FCm=FC/System Services and Support Division
Tel: +90 216 344 07 15
Fax: +90 216 344 07 16
http://www.endersys.com.tr
Comment 5 Андрей Чернов 2007-12-24 09:13:51 UTC
On Mon, Dec 24, 2007 at 10:58:29AM +0200, Ismail YENIGUL wrote:
> Do you want to create map.ISO8859-9 by copying   map.ISO8859-1 and
> change  <D-> as  G(> etc. in  map.ISO8859-9 file as well as
> tr_TR.ISO8859-9.src?

Yes. BTW, I see here that only 3 chars are different, not 6 (Czyborra site
says the same: http://czyborra.com/charsets/iso8859.html )

> 3. what about https://stage.maemo.org/svn/maemo/projects/haf/trunk/posix-locales/locales/tr_TR
>  Do I have to change/create something for this kind of file on
>  FreeBSD?

No, just check that the Turkish sorting order is the same like there.

-- 
http://ache.pp.ru/
Comment 6 Ismail YENIGUL 2007-12-24 09:30:40 UTC
Andrey,

It should be OK now. Please find the attached new patch.

Please apply to patch with -p0 option.


Thanks.

Monday, December 24, 2007, 11:13:51 AM, you wrote:

> On Mon, Dec 24, 2007 at 10:58:29AM +0200, Ismail YENIGUL wrote:
>> Do you want to create map.ISO8859-9 by copying   map.ISO8859-1 and
>> change  <D-> as  G(> etc. in  map.ISO8859-9 file as well as
>> tr_TR.ISO8859-9.src?


> Yes. BTW, I see here that only 3 chars are different, not 6 (Czyborra site
> says the same: http://czyborra.com/charsets/iso8859.html )


>> 3. what about https://stage.maemo.org/svn/maemo/projects/haf/trunk/posix-locales/locales/tr_TR
>>  Do I have to change/create something for this kind of file on
>>  FreeBSD?


> No, just check that the Turkish sorting order is the same like there.





-- 

Ismail YENIGUL
Yönetici/Manager
Servis ve Destek Bölümü/System Services and Support Division
Tel: +90 216 344 07 15
Fax: +90 216 344 07 16
http://www.endersys.com.tr
Comment 7 dfilter service freebsd_committer freebsd_triage 2007-12-24 10:30:17 UTC
ache        2007-12-24 10:30:09 UTC

  FreeBSD src repository

  Modified files:
    share/colldef        Makefile 
  Added files:
    share/colldef        map.ISO8859-9 tr_TR.ISO8859-9.src 
  Log:
  Add Turkish collate
  
  PR:             118976
  Submitted by:   Ismail YENIGUL <ismail.yenigul@endersys.com.tr>
  
  Revision  Changes    Path
  1.72      +2 -2      src/share/colldef/Makefile
  1.1       +175 -0    src/share/colldef/map.ISO8859-9 (new)
  1.1       +36 -0     src/share/colldef/tr_TR.ISO8859-9.src (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 8 Andrey A. Chernov freebsd_committer freebsd_triage 2007-12-24 10:30:44 UTC
State Changed
From-To: open->patched

Committed into -current
Comment 9 Gavin Atkinson freebsd_committer freebsd_triage 2009-05-18 16:19:42 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-i18n

Over to maintainer(s).  This is already fixed in HEAD but looks trivial to MFC.
Comment 10 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-12 08:47:43 UTC
State Changed
From-To: patched->closed

Commited to stable/7
Comment 11 dfilter service freebsd_committer freebsd_triage 2009-06-12 08:48:48 UTC
Author: edwin
Date: Fri Jun 12 07:48:35 2009
New Revision: 194048
URL: http://svn.freebsd.org/changeset/base/194048

Log:
  MFC of r174887
  
  Add Turkish collate
  
  PR:		conf/118976
  Submitted by:	Ismail YENIGUL <ismail.yenigul@endersys.com.tr>

Added:
  stable/7/share/colldef/map.ISO8859-9
     - copied unchanged from r174887, head/share/colldef/map.ISO8859-9
  stable/7/share/colldef/tr_TR.ISO8859-9.src
     - copied unchanged from r174887, head/share/colldef/tr_TR.ISO8859-9.src
Modified:
  stable/7/share/colldef/   (props changed)
  stable/7/share/colldef/Makefile

Modified: stable/7/share/colldef/Makefile
==============================================================================
--- stable/7/share/colldef/Makefile	Fri Jun 12 07:39:10 2009	(r194047)
+++ stable/7/share/colldef/Makefile	Fri Jun 12 07:48:35 2009	(r194048)
@@ -36,6 +36,7 @@ LOCALES=	bg_BG.CP1251 \
 		sr_YU.ISO8859-5 \
 		sv_SE.ISO8859-1 \
 		sv_SE.ISO8859-15 \
+		tr_TR.ISO8859-9 \
 		uk_UA.CP1251 \
 		uk_UA.ISO8859-5 \
 		uk_UA.KOI8-U
@@ -60,7 +61,7 @@ ${locale}.out: map.${locale:E}
 CLEANFILES=	${FILES}
 
 ENCODINGS=	Big5 Big5HKSCS CP949 eucCN eucJP eucKR GB18030 GB2312 GBK \
-		ISO8859-1 ISO8859-2 ISO8859-9 ISO8859-15 SJIS US-ASCII UTF-8
+		ISO8859-1 ISO8859-2 ISO8859-15 SJIS US-ASCII UTF-8
 
 ISO8859-1_Big5=	is_IS:zh_TW
 ISO8859-1_ISO8859-1= ${ISO8859-15_ISO8859-15} pt_PT:pt_BR
@@ -83,7 +84,6 @@ US-ASCII_eucKR=	la_LN:ko_KR
 US-ASCII_GB18030= la_LN:zh_CN
 US-ASCII_GB2312= la_LN:zh_CN
 US-ASCII_GBK=	la_LN:zh_CN
-US-ASCII_ISO8859-9= la_LN:tr_TR
 US-ASCII_SJIS=	la_LN:ja_JP
 
 ASCIILINKS=	en_AU en_CA en_GB en_NZ en_US

Copied: stable/7/share/colldef/map.ISO8859-9 (from r174887, head/share/colldef/map.ISO8859-9)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ stable/7/share/colldef/map.ISO8859-9	Fri Jun 12 07:48:35 2009	(r194048, copy of r174887, head/share/colldef/map.ISO8859-9)
@@ -0,0 +1,175 @@
+# $FreeBSD$
+NU \x00
+SH \x01
+SX \x02
+EX \x03
+ET \x04
+EQ \x05
+AK \x06
+BL \x07
+BS \x08
+HT \x09
+LF \x0a
+VT \x0b
+FF \x0c
+CR \x0d
+SO \x0e
+SI \x0f
+DL \x10
+D1 \x11
+D2 \x12
+D3 \x13
+D4 \x14
+NK \x15
+SY \x16
+EB \x17
+CN \x18
+EM \x19
+SB \x1a
+EC \x1b
+FS \x1c
+GS \x1d
+RS \x1e
+US \x1f
+SP \x20
+Nb \x23
+DO \x24
+At \x40
+<( \x5b
+// \x5c
+)> \x5d
+'> \x5e
+'! \x60
+(! \x7b
+!! \x7c
+!) \x7d
+'? \x7e
+DT \x7f
+PA \x80
+HO \x81
+BH \x82
+NH \x83
+IN \x84
+NL \x85
+SA \x86
+ES \x87
+HS \x88
+HJ \x89
+VS \x8a
+PD \x8b
+PU \x8c
+RI \x8d
+S2 \x8e
+S3 \x8f
+DC \x90
+P1 \x91
+P2 \x92
+TS \x93
+CC \x94
+MW \x95
+SG \x96
+EG \x97
+SS \x98
+GC \x99
+SC \x9a
+CI \x9b
+ST \x9c
+OC \x9d
+PM \x9e
+AC \x9f
+NS \xa0
+!I \xa1
+Ct \xa2
+Pd \xa3
+Cu \xa4
+Ye \xa5
+BB \xa6
+SE \xa7
+': \xa8
+Co \xa9
+-a \xaa
+<< \xab
+NO \xac
+-- \xad
+Rg \xae
+'m \xaf
+DG \xb0
++- \xb1
+2S \xb2
+3S \xb3
+'' \xb4
+My \xb5
+PI \xb6
+.M \xb7
+', \xb8
+1S \xb9
+-o \xba
+>> \xbb
+14 \xbc
+12 \xbd
+34 \xbe
+?I \xbf
+A! \xc0
+A' \xc1
+A> \xc2
+A? \xc3
+A: \xc4
+AA \xc5
+AE \xc6
+C, \xc7
+E! \xc8
+E' \xc9
+E> \xca
+E: \xcb
+I! \xcc
+I' \xcd
+I> \xce
+I: \xcf
+G( \xd0
+N? \xd1
+O! \xd2
+O' \xd3
+O> \xd4
+O? \xd5
+O: \xd6
+*X \xd7
+O/ \xd8
+U! \xd9
+U' \xda
+U> \xdb
+U: \xdc
+I. \xdd
+S, \xde
+ss \xdf
+a! \xe0
+a' \xe1
+a> \xe2
+a? \xe3
+a: \xe4
+aa \xe5
+ae \xe6
+c, \xe7
+e! \xe8
+e' \xe9
+e; \xea
+e: \xeb
+e. \xec
+i' \xed
+i> \xee
+i- \xef
+g( \xf0
+n? \xf1
+o! \xf2
+o' \xf3
+o> \xf4
+o? \xf5
+o: \xf6
+-: \xf7
+o/ \xf8
+u! \xf9
+u' \xfa
+u> \xfb
+u: \xfc
+i. \xfd
+s, \xfe
+y: \xff

Copied: stable/7/share/colldef/tr_TR.ISO8859-9.src (from r174887, head/share/colldef/tr_TR.ISO8859-9.src)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ stable/7/share/colldef/tr_TR.ISO8859-9.src	Fri Jun 12 07:48:35 2009	(r194048, copy of r174887, head/share/colldef/tr_TR.ISO8859-9.src)
@@ -0,0 +1,36 @@
+# latin5 (backward compatible with ASCII)
+#
+# $FreeBSD$
+#
+charmap map.ISO8859-9
+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/>>,<AA>,<A:>,<A?>,<AE>);\
+	B;(C,<C,>);D;(E,<E'>,<E!>,<E/>>,<E:>);\
+	F;G;<G(>;H;(I,<I'>,<I!>,<I/>>,<I:>);<I.>;\
+	J;...;M;(N,<N?>);(O,<O'>,<O!>,<O/>>,<O:>,<O?>,<O//>);\
+	P;...;S;<S,>;T;(U,<U'>,<U!>,<U/>>,<U:>);\
+	V;W;X;Y;Z;\
+#
+	[;\\;];^;<':>;_;<'m>;<''>;`;\
+# small
+	(a,<a'>,<a!>,<a/>>,<aa>,<a:>,<a?>,<ae>);\
+	b;(c,<c,>);d;(e,<e'>,<e!>,<e;>,<e:>);\
+	f;g;<g(>;h;<i.>;(i,<i'>,<e.>,<i/>>,<i->);\
+	j;...;m;(n,<n?>);(o,<o'>,<o!>,<o/>>,<o:>,<o?>,<o//>);\
+	p;...;s;<s,>;<ss>;t;(u,<u'>,<u!>,<u/>>,<u:>);\
+	v;w;x;(y,<y:>);z;\
+#
+	\{;<NO>;|;<BB>;\};~;<.M>;<DG>;<My>;<DT>;\
+# remains
+	<-a>;<-o>
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"