Skip site navigation (1)Skip section navigation (2)
Date:      28 Feb 2001 18:56:05 -0000
From:      Peter Pentchev <roam@orbitel.bg>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/25472: add bg_BG.CP1251 locale support
Message-ID:  <20010228185605.2724.qmail@ringworld.nanolink.com>

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

>Number:         25472
>Category:       conf
>Synopsis:       add bg_BG.CP1251 locale support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 01 00:00:07 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Peter Pentchev
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
Orbitel JSCo.
>Environment:

FreeBSD 4.2-STABLE #17

>Description:

Definitions for the Bulgarian CP-1251 locale.

>How-To-Repeat:

env LC_ALL=bg_BG.CP1251 date ;)

>Fix:

Index: src/share/colldef/Makefile
===================================================================
RCS file: /home/ncvs/src/share/colldef/Makefile,v
retrieving revision 1.34
diff -u -r1.34 Makefile
--- src/share/colldef/Makefile	2001/01/17 16:47:28	1.34
+++ src/share/colldef/Makefile	2001/02/23 18:21:57
@@ -3,7 +3,8 @@
 NOMAN=YES
 CLEANFILES+= ${LOCALES:S/$/.out/g}
 
-LOCALES=	cs_CZ.ISO_8859-2 \
+LOCALES=	bg_BG.CP1251 \
+		cs_CZ.ISO_8859-2 \
 		de_DE.DIS_8859-15 \
 		de_DE.ISO_8859-1 \
 		el_GR.ISO_8859-7 \
Index: src/share/colldef/bg_BG.CP1251.src
===================================================================
RCS file: bg_BG.CP1251.src
diff -N bg_BG.CP1251.src
--- /dev/null	Fri Feb 23 10:20:23 2001
+++ src/share/colldef/bg_BG.CP1251.src	Fri Feb 23 10:21:57 2001
@@ -0,0 +1,48 @@
+# CP1251 (backward compatible with ASCII)
+#
+# $FreeBSD$
+#
+charmap map.CP1251
+order \
+# controls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;<vR>;<Vr>;<VR>;\
+#	<vl>;<vL>;<Vl>;<VL>;<dh>;<dH>;<Dh>;<DH>;\
+#	<uh>;<uH>;<Uh>;<UH>;<vh>;<vH>;<Vh>;<VH>;\
+#	<TB>;<LB>;<FB>;<lB>;<RB>;<.S>;<:S>;<?S>;<fS>
Index: src/share/colldef/map.CP1251
===================================================================
RCS file: map.CP1251
diff -N map.CP1251
--- /dev/null	Fri Feb 23 10:20:23 2001
+++ src/share/colldef/map.CP1251	Fri Feb 23 10:21:57 2001
@@ -0,0 +1,174 @@
+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
+80 \x80
+81 \x81
+82 \x82
+83 \x83
+84 \x84
+85 \x85
+86 \x86
+87 \x87
+88 \x88
+89 \x89
+8a \x8a
+8b \x8b
+8c \x8c
+8d \x8d
+8e \x8e
+8f \x8f
+90 \x90
+91 \x91
+92 \x92
+93 \x93
+94 \x94
+95 \x95
+96 \x96
+97 \x97
+98 \x98
+99 \x99
+9a \x9a
+9b \x9b
+9c \x9c
+9d \x9d
+9e \x9e
+9f \x9f
+a0 \xa0
+a1 \xa1
+a2 \xa2
+a3 \xa3
+a4 \xa4
+a5 \xa5
+a6 \xa6
+a7 \xa7
+a8 \xa8
+a9 \xa9
+aa \xaa
+ab \xab
+ac \xac
+ad \xad
+ae \xae
+af \xaf
+b0 \xb0
+b1 \xb1
+b2 \xb2
+b3 \xb3
+b4 \xb4
+b5 \xb5
+b6 \xb6
+b7 \xb7
+b8 \xb8
+b9 \xb9
+ba \xba
+bb \xbb
+bc \xbc
+bd \xbd
+be \xbe
+bf \xbf
+ju \xfe
+a= \xe0
+b= \xe1
+c= \xf6
+d= \xe4
+e= \xe5
+f= \xf4
+g= \xe3
+h= \xf5
+i= \xe8
+j= \xe9
+k= \xea
+l= \xeb
+m= \xec
+n= \xed
+o= \xee
+p= \xef
+ja \xff
+r= \xf0
+s= \xf1
+t= \xf2
+u= \xf3
+z% \xe6
+v= \xe2
+%' \xfc
+y= \xfb
+z= \xe7
+s% \xf8
+je \xfd
+sc \xf9
+c% \xf7
+=' \xfa
+JU \xde
+A= \xc0
+B= \xc1
+C= \xd6
+D= \xc4
+E= \xc5
+F= \xd4
+G= \xc3
+H= \xd5
+I= \xc8
+J= \xc9
+K= \xca
+L= \xcb
+M= \xcc
+N= \xcd
+O= \xce
+P= \xcf
+JA \xdf
+R= \xd0
+S= \xd1
+T= \xd2
+U= \xd3
+Z% \xc6
+V= \xc2
+%" \xdc
+Y= \xdb
+Z= \xc7
+S% \xd8
+JE \xdd
+Sc \xd9
+C% \xd7
+=" \xda
Index: src/share/mklocale/Makefile
===================================================================
RCS file: /home/ncvs/src/share/mklocale/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- src/share/mklocale/Makefile	2001/01/17 13:30:16	1.30
+++ src/share/mklocale/Makefile	2001/02/23 18:22:00
@@ -3,7 +3,8 @@
 NOMAN=YES
 CLEANFILES+= ${LOCALES:S/$/.out/g}
 
-LOCALES=        el_GR.ISO_8859-7 \
+LOCALES=        bg_BG.CP1251 \
+		el_GR.ISO_8859-7 \
 		ja_JP.EUC \
 		ja_JP.SJIS \
 		ko_KR.EUC \
Index: src/share/mklocale/bg_BG.CP1251.src
===================================================================
RCS file: bg_BG.CP1251.src
diff -N bg_BG.CP1251.src
--- /dev/null	Fri Feb 23 10:20:23 2001
+++ src/share/mklocale/bg_BG.CP1251.src	Fri Feb 23 10:22:00 2001
@@ -0,0 +1,35 @@
+/*
+ * LOCALE_CTYPE for Bulgarian Cyrillic character set (CP-1251)
+ */
+ENCODING	"NONE"
+VARIABLE        Bulgarian Cyrillic character set (CP-1251) by roam@orbitel.bg
+
+#
+# This is a comment
+#
+ALPHA           'A' - 'Z' 'a' - 'z' 0xc0 - 0xdf 0xe0 - 0xff
+CONTROL		0x00 - 0x1f 0x7f
+DIGIT		'0' - '9'
+GRAPH           0x21 - 0x7e 0x80 - 0xff
+LOWER           'a' - 'z' 0xe0 - 0xff
+PUNCT		0x21 - 0x2f 0x3a - 0x40 0x5b - 0x60 0x7b - 0x7e
+SPACE		0x09 - 0x0d 0x20
+UPPER           'A' - 'Z' 0xc0 - 0xdf
+XDIGIT          '0' - '9' 'a' - 'f' 'A' - 'F'
+BLANK		' ' '\t'
+PRINT		0x20 - 0x7e 0x80 - 0xff
+# IDEOGRAM
+# SPECIAL
+# PHONEGRAM
+
+MAPLOWER       	<'A' - 'Z' : 'a'>
+MAPLOWER       	<'a' - 'z' : 'a'>
+MAPLOWER        <0xc0 - 0xdf : 0xe0>
+MAPLOWER        <0xe0 - 0xff : 0xe0>
+MAPUPPER       	<'A' - 'Z' : 'A'>
+MAPUPPER       	<'a' - 'z' : 'A'>
+MAPUPPER        <0xc0 - 0xdf : 0xc0>
+MAPUPPER        <0xe0 - 0xff : 0xc0>
+TODIGIT       	<'0' - '9' : 0>
+TODIGIT       	<'A' - 'F' : 10>
+TODIGIT       	<'a' - 'f' : 10>
Index: src/share/monetdef/Makefile
===================================================================
RCS file: /home/ncvs/src/share/monetdef/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- src/share/monetdef/Makefile	2001/02/19 20:05:22	1.20
+++ src/share/monetdef/Makefile	2001/02/23 18:22:00
@@ -4,6 +4,7 @@
 CLEANFILES+= ${LOCALES:S/$/.out/g}
 
 LOCALES=	af_ZA.ISO_8859-1 \
+		bg_BG.CP1251 \
 		cs_CZ.ISO_8859-2 \
 		da_DK.ISO_8859-1 \
 		de_DE.ISO_8859-1 \
Index: src/share/monetdef/bg_BG.CP1251.src
===================================================================
RCS file: bg_BG.CP1251.src
diff -N bg_BG.CP1251.src
--- /dev/null	Fri Feb 23 10:20:23 2001
+++ src/share/monetdef/bg_BG.CP1251.src	Fri Feb 23 10:22:00 2001
@@ -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)
+BGN 
+# currency_symbol
+лв.
+# mon_decimal_point
+,
+# mon_thousands_sep
+ 
+# mon_grouping
+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
Index: src/share/msgdef/Makefile
===================================================================
RCS file: /home/ncvs/src/share/msgdef/Makefile,v
retrieving revision 1.20
diff -u -r1.20 Makefile
--- src/share/msgdef/Makefile	2001/02/19 20:05:09	1.20
+++ src/share/msgdef/Makefile	2001/02/23 18:22:00
@@ -4,6 +4,7 @@
 CLEANFILES+= ${LOCALES:S/$/.out/g}
 
 LOCALES=	af_ZA.ISO_8859-1 \
+		bg_BG.CP1251 \
 		cs_CZ.ISO_8859-2 \
 		da_DK.ISO_8859-1 \
 		de_DE.ISO_8859-1 \
Index: src/share/msgdef/bg_BG.CP1251.src
===================================================================
RCS file: bg_BG.CP1251.src
diff -N bg_BG.CP1251.src
--- /dev/null	Fri Feb 23 10:20:23 2001
+++ src/share/msgdef/bg_BG.CP1251.src	Fri Feb 23 10:22:00 2001
@@ -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
Index: src/share/numericdef/Makefile
===================================================================
RCS file: /home/ncvs/src/share/numericdef/Makefile,v
retrieving revision 1.21
diff -u -r1.21 Makefile
--- src/share/numericdef/Makefile	2001/02/19 20:05:15	1.21
+++ src/share/numericdef/Makefile	2001/02/23 18:22:02
@@ -4,6 +4,7 @@
 CLEANFILES+= ${LOCALES:S/$/.out/g}
 
 LOCALES=	af_ZA.ISO_8859-1 \
+		bg_BG.CP1251 \
 		cs_CZ.ISO_8859-2 \
 		da_DK.ISO_8859-1 \
 		de_DE.ISO_8859-1 \
Index: src/share/numericdef/bg_BG.CP1251.src
===================================================================
RCS file: bg_BG.CP1251.src
diff -N bg_BG.CP1251.src
--- /dev/null	Fri Feb 23 10:20:23 2001
+++ src/share/numericdef/bg_BG.CP1251.src	Fri Feb 23 10:22:02 2001
@@ -0,0 +1,12 @@
+# $FreeBSD$
+#
+# WARNING: spaces may be essential at the end of lines
+# WARNING: empty lines are essential too
+#
+# decimal_point
+,
+# thousands_sep
+ 
+# grouping
+3;3
+# EOF
Index: src/share/timedef/Makefile
===================================================================
RCS file: /home/ncvs/src/share/timedef/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- src/share/timedef/Makefile	2001/01/17 13:43:20	1.14
+++ src/share/timedef/Makefile	2001/02/23 18:22:02
@@ -3,7 +3,8 @@
 NOMAN=YES
 CLEANFILES+= ${LOCALES:S/$/.out/g}
 
-LOCALES=	cs_CZ.ISO_8859-2 \
+LOCALES=	bg_BG.CP1251 \
+		cs_CZ.ISO_8859-2 \
 		da_DK.ISO_8859-1 \
 		de_AT.ISO_8859-1 \
 		de_DE.ISO_8859-1 \
Index: src/share/timedef/bg_BG.CP1251.src
===================================================================
RCS file: bg_BG.CP1251.src
diff -N bg_BG.CP1251.src
--- /dev/null	Fri Feb 23 10:20:23 2001
+++ src/share/timedef/bg_BG.CP1251.src	Fri Feb 23 10:22:03 2001
@@ -0,0 +1,101 @@
+# $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
+# (padded with a space to conform with other languages)
+Нд 
+Пн 
+Вт 
+Ср 
+Чт 
+Пт 
+Сб 
+#
+# Long weekdays names
+#
+Неделя
+Понеделник
+Вторник
+Сряда
+Четвъртък
+Петък
+Събота
+#
+# X_fmt
+#
+%H:%M:%S
+#
+# x_fmt
+#
+%d.%m.%y
+#
+# c_fmt
+#
+%a %e %b %X %Y
+#
+# am
+#
+am
+#
+# pm
+#
+pm
+#
+# date_fmt
+#
+%a %e %b %Y %X %Z
+#
+# Long months names (alternative)
+#
+Януари
+Февруари
+Март
+Април
+Май
+Юни
+Юли
+Август
+Септември
+Октомври
+Ноември
+Декември
+#
+# Ef_fmt
+#
+%e %b
+#
+# EF_fmt
+#
+%e %B
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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