From freeman@freeman.org.ua  Thu Jan 20 15:49:06 2005
Return-Path: <freeman@freeman.org.ua>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 801E516A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jan 2005 15:49:06 +0000 (GMT)
Received: from beer.ucmg.com.ua (beer.ucmg.com.ua [82.144.196.112])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0233343D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jan 2005 15:49:04 +0000 (GMT)
	(envelope-from freeman@freeman.org.ua)
Received: from freeman.ukrtelecom.net (freeman.ucmg.local [192.168.100.2])
	by beer.ucmg.com.ua (8.12.11/8.12.11) with ESMTP id j0KFn2oh052418
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jan 2005 17:49:02 +0200 (EET)
	(envelope-from freeman@freeman.org.ua)
Received: from freeman.ukrtelecom.net (localhost.ukrtelecom.net [127.0.0.1])
	by freeman.ukrtelecom.net (8.13.1/8.13.1) with ESMTP id j0KFmqvl097961
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 20 Jan 2005 17:48:52 +0200 (EET)
	(envelope-from freeman@freeman.org.ua)
Received: (from freeman@localhost)
	by freeman.ukrtelecom.net (8.13.1/8.13.1/Submit) id j0KFmqNL097960;
	Thu, 20 Jan 2005 17:48:52 +0200 (EET)
	(envelope-from freeman)
Message-Id: <200501201548.j0KFmqNL097960@freeman.ukrtelecom.net>
Date: Thu, 20 Jan 2005 17:48:52 +0200 (EET)
From: Alexander Peresunko <alex@freeman.org.ua>
Reply-To: Alexander Peresunko <alex@freeman.org.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] New locale uk_UA.CP1251 support 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         76509
>Category:       conf
>Synopsis:       [patch] [locale] New locale uk_UA.CP1251 support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 20 15:50:16 GMT 2005
>Closed-Date:    Sat Feb 09 13:12:46 UTC 2008
>Last-Modified:  Sat Feb 09 13:12:46 UTC 2008
>Originator:     Alexander Peresunko
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
Ukrtelecom 
>Environment:
System: FreeBSD freeman.ukrtelecom.net 5.3-STABLE FreeBSD 5.3-STABLE #1: Wed Dec 22 18:15:26 EET 2004 root@freeman.ukrtelecom.net:/usr/obj/usr/src/sys/FREEMAN i386
	
	
>Description:
	Patch for uk_UA.CP1251 locale support 
	(for ukrainian users who wants to work in the ukrainian locale with CP1251 charset)
	
>How-To-Repeat:
	1. Save attached patch somewhere
	2. cd /usr/src && patch -p1 < /path/to/patch
	
>Fix:
	Patch is attached
	

--- locale-uk_UA.CP1251.patch begins here ---
diff -urN src/share/colldef/Makefile src.new/share/colldef/Makefile
--- src/share/colldef/Makefile	Sat Oct 16 22:51:34 2004
+++ src.new/share/colldef/Makefile	Sun Oct 17 04:42:58 2004
@@ -34,6 +34,7 @@
 		sr_YU.ISO8859-5 \
 		sv_SE.ISO8859-1 \
 		sv_SE.ISO8859-15 \
+		uk_UA.CP1251 \
 		uk_UA.ISO8859-5 \
 		uk_UA.KOI8-U
 
diff -urN src/share/colldef/uk_UA.CP1251.src src.new/share/colldef/uk_UA.CP1251.src
--- src/share/colldef/uk_UA.CP1251.src	Thu Jan  1 03:00:00 1970
+++ src.new/share/colldef/uk_UA.CP1251.src	Sun Oct 17 04:48:16 2004
@@ -0,0 +1,42 @@
+# CP1251 (for Ukrainian)
+#
+# $FreeBSD$
+#
+charmap map.CP1251
+order \
+# controls
+	<NU>;...;<US>;\
+#
+	<NS>;<SP>;!;\";<"6>;<"9>;<<<>;</>/>>;\
+	<Nb>;<Eu>;<Cu>;<DO>;\
+	%;&;';<'6>;<'9>;\(;\);*;+;<+->;\,;<-->;-;.;/;\
+# digits
+	0;...;9;\
+#
+	:;\;;\<;=;>;?;<SE>;<PI>;<Co>;<Rg>;<At>;\
+# capital
+	A;...;Z;\
+	<A=>;<B=>;<V=>;<G=>;<G3>;<D=>;<E=>;<IE>;<Z%>;\
+	<Z=>;<I=>;<II>;<YI>;<J=>;<K=>;<L=>;<M=>;<N=>;\
+	<O=>;<P=>;<R=>;<S=>;<T=>;<U=>;<F=>;<H=>;<C=>;\
+	<C%>;<S%>;<Sc>;<JU>;<JA>;<%">;\
+#
+	[;\\;];^;_;`;\
+# small
+	a;...;z;\
+	<a=>;<b=>;<v=>;<g=>;<g3>;<d=>;<e=>;<ie>;<z%>;\
+	<z=>;<i=>;<ii>;<yi>;<j=>;<k=>;<l=>;<m=>;<n=>;\
+	<o=>;<p=>;<r=>;<s=>;<t=>;<u=>;<f=>;<h=>;<c=>;\
+	<c%>;<s%>;<sc>;<ju>;<ja>;<%'>;\
+#
+	\{;<NO>;|;<BB>;\};~;<.M>;<DG>;<My>;\
+	<-N>;<-M>;<.9>;<:9>;</->;</=>;<.3>;<%0>;<<1>;</>1>;\
+	<N0>;<TM>;<sb>;<FB>;<DT>;\
+#
+	<D%>;<G%>;<g%>;\
+	<LJ>;<NJ>;<KJ>;<Ts>;<DZ>;\
+	<d%>;\
+	<lj>;<nj>;<kj>;<ts>;<dz>;\
+	<V%>;<v%>;<J%>;\
+	<j%>;<DS>;<ds>;\
+	<IO>;<io>;<Y=>;<y=>;<=">;<='>;<JE>;<je>
diff -urN src/share/mklocale/Makefile src.new/share/mklocale/Makefile
--- src/share/mklocale/Makefile	Sat Aug 28 15:52:30 2004
+++ src.new/share/mklocale/Makefile	Sun Oct 17 04:38:27 2004
@@ -44,7 +44,7 @@
 LATIN2LINKS=	cs_CZ hr_HR hu_HU pl_PL sl_SI sr_YU ro_RO sk_SK
 LATIN4LINKS=	lt_LT
 LATIN5LINKS=	sr_YU uk_UA be_BY
-CP1251LINKS=    ru_RU be_BY
+CP1251LINKS=    ru_RU be_BY uk_UA
 UTF8LINKS=	af_ZA be_BY bg_BG ca_ES cs_CZ da_DK de_AT de_CH de_DE el_GR \
 		en_AU en_CA en_GB en_IE en_NZ en_US es_ES et_EE eu_ES fi_FI \
 		fr_BE \
diff -urN src/share/monetdef/Makefile src.new/share/monetdef/Makefile
--- src/share/monetdef/Makefile	Wed Oct 13 18:47:02 2004
+++ src.new/share/monetdef/Makefile	Sun Oct 17 04:38:26 2004
@@ -64,6 +64,7 @@
 		sr_YU.UTF-8 \
 		sv_SE.ISO8859-1 \
 		tr_TR.ISO8859-9 \
+		uk_UA.CP1251 \
 		uk_UA.ISO8859-5 \
 		uk_UA.KOI8-U \
 		uk_UA.UTF-8 \
diff -urN src/share/monetdef/uk_UA.CP1251.src src.new/share/monetdef/uk_UA.CP1251.src
--- src/share/monetdef/uk_UA.CP1251.src	Thu Jan  1 03:00:00 1970
+++ src.new/share/monetdef/uk_UA.CP1251.src	Sun Oct 17 04:48:48 2004
@@ -0,0 +1,36 @@
+# $FreeBSD$
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# int_curr_symbol (last character always SPACE)
+UAH 
+# currency_symbol
+.
+# mon_decimal_point
+,
+# mon_thousands_sep
+ 
+# mon_grouping, separated by ;
+3;3
+# positive_sign
+
+# negative_sign
+-
+# int_frac_digits
+2
+# frac_digits
+2
+# p_cs_precedes
+0
+# p_sep_by_space
+1
+# n_cs_precedes
+0
+# n_sep_by_space
+1
+# p_sign_posn
+1
+# n_sign_posn
+1
+# EOF
diff -urN src/share/msgdef/Makefile src.new/share/msgdef/Makefile
--- src/share/msgdef/Makefile	Fri Sep  3 17:28:53 2004
+++ src.new/share/msgdef/Makefile	Sun Oct 17 04:38:26 2004
@@ -54,6 +54,7 @@
 		sr_YU.UTF-8 \
 		sv_SE.ISO8859-1 \
 		tr_TR.ISO8859-9 \
+		uk_UA.CP1251 \
 		uk_UA.ISO8859-5 \
 		uk_UA.KOI8-U \
 		uk_UA.UTF-8 \
diff -urN src/share/msgdef/uk_UA.CP1251.src src.new/share/msgdef/uk_UA.CP1251.src
--- src/share/msgdef/uk_UA.CP1251.src	Thu Jan  1 03:00:00 1970
+++ src.new/share/msgdef/uk_UA.CP1251.src	Sun Oct 17 04:49:05 2004
@@ -0,0 +1,14 @@
+# $FreeBSD$
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# yesexpr
+^[yY].*
+# noexpr
+^[nN].*
+# yesstr
+
+# nostr
+
+# EOF
diff -urN src/share/numericdef/Makefile src.new/share/numericdef/Makefile
--- src/share/numericdef/Makefile	Sat Aug 28 16:24:24 2004
+++ src.new/share/numericdef/Makefile	Sun Oct 17 04:38:27 2004
@@ -70,7 +70,7 @@
 IT_LINKS=	it_CH
 BE_LINKS=	nl_BE
 RU_LINKS=       ru_RU.CP1251 ru_RU.CP866 ru_RU.ISO8859-5
-UA_LINKS=       uk_UA.ISO8859-5
+UA_LINKS=       uk_UA.CP1251 uk_UA.ISO8859-5
 BY_LINKS=	be_BY.CP1131 be_BY.ISO8859-5
 CN_LINKS=       zh_CN.GB18030 zh_CN.GB2312 zh_CN.GBK zh_HK.Big5HKSCS zh_TW.Big5
 
diff -urN src/share/timedef/Makefile src.new/share/timedef/Makefile
--- src/share/timedef/Makefile	Sat Oct 16 23:52:32 2004
+++ src.new/share/timedef/Makefile	Sun Oct 17 04:38:25 2004
@@ -80,6 +80,7 @@
 		sv_SE.UTF-8 \
 		tr_TR.ISO8859-9 \
 		tr_TR.UTF-8 \
+		uk_UA.CP1251 \
 		uk_UA.ISO8859-5 \
 		uk_UA.KOI8-U \
 		uk_UA.UTF-8 \
diff -urN src/share/timedef/uk_UA.CP1251.src src.new/share/timedef/uk_UA.CP1251.src
--- src/share/timedef/uk_UA.CP1251.src	Thu Jan  1 03:00:00 1970
+++ src.new/share/timedef/uk_UA.CP1251.src	Sun Oct 17 04:49:38 2004
@@ -0,0 +1,102 @@
+# $FreeBSD$
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# Short months names
+#
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# Long months names
+#
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# Short weekdays names
+#
+
+
+
+
+
+
+
+#
+# Long weekdays names
+#
+
+
+
+
+
+'
+
+#
+# X_fmt
+#
+%H:%M:%S
+#
+# x_fmt
+#
+%d.%m.%Y
+#
+# c_fmt
+#
+%a %e %b %X %Y
+#
+# am
+#
+
+#
+# pm
+#
+
+#
+# date_fmt
+#
+%a %e %b %Y %X %Z
+#
+# Long month names in alternative form
+#
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# md_order
+#
+dm
+#
+# ampm_fmt
+#
+
+# EOF
diff -ur src/etc/mtree/BSD.usr.dist src.new/etc/mtree/BSD.usr.dist
--- src/etc/mtree/BSD.usr.dist	Sat Sep 25 03:42:37 2004
+++ src.new/etc/mtree/BSD.usr.dist	Sun Oct 17 04:41:07 2004
@@ -615,6 +615,8 @@
             ..
             tr_TR.UTF-8
             ..
+            uk_UA.CP1251
+            ..
             uk_UA.ISO8859-5
             ..
             uk_UA.KOI8-U
--- locale-uk_UA.CP1251.patch ends here ---


>Release-Note:
>Audit-Trail:

From: pr-76509@ls.si.ru
To: bug-followup@FreeBSD.org,alex@freeman.org.ua
Cc:  
Subject: Re: conf/76509: [patch] New locale uk_UA.CP1251
Date: Sat, 11 Jun 2005 14:07:50 +0400 (MSD)

 >   Environment
 >
 > System: FreeBSD freeman.ukrtelecom.net 5.3-STABLE FreeBSD 5.3-STABLE #1: Wed Dec 22 18:15:26 EET 2004 root@freeman.ukrtelecom.net:/usr/obj/usr/src/sys/FREEMAN i386
 
 >   Description
 >
 >	Patch for uk_UA.CP1251 locale support (for ukrainian users who
 >	wants to work in the ukrainian locale with CP1251 charset)
 >
 >   How-To-Repeat
 >
 >	1. Save attached patch somewhere
 >	2. cd /usr/src && patch -p1 < /path/to/patch
 >
 >   Fix
 >
 >	Patch is attached
 
 Dear commiters!
 
 Please check in the uk_UA.CP1251 locale support.
 
 Just tested it on
 	FreeBSD/i386 5.4-STABLE as of Sat Jun 11 06:40 UTC 2005 
 system -- it works.
 
 Alex! Thank you for a patch!
State-Changed-From-To: open->patched 
State-Changed-By: linimon 
State-Changed-When: Fri Jun 15 11:36:25 UTC 2007 
State-Changed-Why:  
Needs MFC to 5. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76509 
State-Changed-From-To: patched->closed 
State-Changed-By: remko 
State-Changed-When: Sat Feb 9 13:12:43 UTC 2008 
State-Changed-Why:  
This needs MFC to RELENG_5, though I would like people facing this to 
encourage them to use FreeBSD-6 and/or FreeBSD-7 (preferred) since in 
the not too long future REL_5 will no longer be supported. Close the 
ticket for those reasons 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76509 
>Unformatted:
