Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2001 02:10:01 -0800 (PST)
From:      Peter Pentchev <roam@ringlet.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/25472: add bg_BG.CP1251 locale support
Message-ID:  <200110301010.f9UAA1i24550@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/25472; it has been noted by GNATS.

From: Peter Pentchev <roam@ringlet.net>
To: "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: conf/25472: add bg_BG.CP1251 locale support
Date: Tue, 30 Oct 2001 12:02:37 +0200

 On Mon, Oct 29, 2001 at 10:46:48PM +0300, Andrey A. Chernov wrote:
 > On Mon, Oct 29, 2001 at 19:49:27 +0200, Peter Pentchev wrote:
 > > OK, here's another attempt at a patch.  I've been running with
 > 
 > Well, time passes and what was incorrect becomes correct :-)
 > I mean the name, bg_BG.CP1251. After long discussion we decide to switch 
 > to X11-based name convention here, so no MIME charsets in the names 
 > required.
 > 
 > Please re-submit your patch, changing bg_BG.windows-1251 to bg_BG.CP1251,
 > in other aspects it looks correct by first look.
 
 OK, here it is again, with the charset name changed and my e-mail
 address fixed.
 
 G'luck,
 Peter
 
 -- 
 If there were no counterfactuals, this sentence would not have been paradoxical.
 
 Index: src/etc/mtree/BSD.local.dist
 ===================================================================
 RCS file: /home/ncvs/src/etc/mtree/BSD.local.dist,v
 retrieving revision 1.80
 diff -u -r1.80 BSD.local.dist
 --- src/etc/mtree/BSD.local.dist	25 Oct 2001 12:16:51 -0000	1.80
 +++ src/etc/mtree/BSD.local.dist	29 Oct 2001 17:05:59 -0000
 @@ -241,6 +241,8 @@
              ..
              af_ZA.ISO8859-15
              ..
 +            bg_BG.CP1251
 +            ..
              cs_CZ.ISO8859-2
              ..
              da_DK.ISO8859-1
 Index: src/etc/mtree/BSD.usr.dist
 ===================================================================
 RCS file: /home/ncvs/src/etc/mtree/BSD.usr.dist,v
 retrieving revision 1.238
 diff -u -r1.238 BSD.usr.dist
 --- src/etc/mtree/BSD.usr.dist	25 Oct 2001 12:16:51 -0000	1.238
 +++ src/etc/mtree/BSD.usr.dist	29 Oct 2001 17:10:39 -0000
 @@ -485,6 +485,8 @@
              ..
              af_ZA.ISO8859-15
              ..
 +            bg_BG.CP1251
 +            ..
              cs_CZ.ISO8859-2
              ..
              da_DK.ISO8859-1
 @@ -796,6 +798,8 @@
              af_ZA.ISO8859-1
              ..
              af_ZA.ISO8859-15
 +            ..
 +            bg_BG.CP1251
              ..
              cs_CZ.ISO8859-2
              ..
 Index: src/share/colldef/Makefile
 ===================================================================
 RCS file: /home/ncvs/src/share/colldef/Makefile,v
 retrieving revision 1.39
 diff -u -r1.39 Makefile
 --- src/share/colldef/Makefile	10 Jun 2001 18:57:27 -0000	1.39
 +++ src/share/colldef/Makefile	29 Oct 2001 17:05:59 -0000
 @@ -3,7 +3,8 @@
  NOMAN=YES
  CLEANFILES+= ${LOCALES:S/$/.out/g}
  
 -LOCALES=        cs_CZ.ISO8859-2 \
 +LOCALES=	bg_BG.CP1251 \
 +		cs_CZ.ISO8859-2 \
  		de_DE.ISO8859-15 \
  		de_DE.ISO8859-1 \
  		el_GR.ISO8859-7 \
 Index: src/share/colldef/bg_BG.CP1251.src
 ===================================================================
 RCS file: src/share/colldef/bg_BG.CP1251.src
 diff -N src/share/colldef/bg_BG.CP1251.src
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ src/share/colldef/bg_BG.CP1251.src	29 Oct 2001 17:05:59 -0000
 @@ -0,0 +1,40 @@
 +# CP1251 (backward compatible with ASCII)
 +#
 +# $FreeBSD$
 +#
 +charmap map.CP1251
 +order \
 +# controls
 +	<NU>;...;<US>;\
 +#
 +	<SP>;!;\";<Nb>;<DO>;\
 +	%;&;';\(;\);*;+;\,;-;.;/;\
 +# digits
 +	0;1;2;3;...;9;\
 +#
 +	:;\;;\<;=;>;?;<At>;\
 +# uppercase
 +	A;...;Z;\
 +	<A=>;<B=>;<V=>;<G=>;<D=>;<E=>;<Z%>;<Z=>;\
 +	<I=>;<J=>;<K=>;<L=>;<M=>;<N=>;<O=>;<P=>;<R=>;\
 +	<S=>;<T=>;<U=>;<F=>;<H=>;<C=>;<C%>;<S%>;<Sc>;\
 +	<=">;<Y=>;<%">;<JE>;<JU>;<JA>;\
 +#
 +	[;\\;];^;_;`;\
 +# lowercase
 +	a;...;z;\
 +	<a=>;<b=>;<v=>;<g=>;<d=>;<e=>;<z%>;<z=>;\
 +	<i=>;<j=>;<k=>;<l=>;<m=>;<n=>;<o=>;<p=>;<r=>;\
 +	<s=>;<t=>;<u=>;<f=>;<h=>;<c=>;<c%>;<s%>;<sc>;\
 +	<='>;<y=>;<%'>;<je>;<ju>;<ja>;\
 +#
 +	\{;|;\};~;<DT>;\
 +#
 +	<D%>;<G%>;<.9>;<g%>;<:9>;<.3>;</->;</=>;\
 +	<Eu>;<%0>;<LJ>;<<1>;<NJ>;<KJ>;<Ts>;<DZ>;\
 +	<d%>;<'6>;<'9>;<"6>;<"9>;<sb>;<-N>;<-M>;\
 +	<FB>;<TM>;<lj>;</>1>;<nj>;<kj>;<ts>;<dz>;\
 +	<NS>;<V%>;<v%>;<J%>;<Cu>;<G3>;<BB>;<SE>;\
 +	<IO>;<Co>;<IE>;<<<>;<NO>;<-->;<Rg>;<YI>;\
 +	<DG>;<+->;<II>;<ii>;<g3>;<My>;<PI>;<.M>;\
 +	<io>;<N0>;<ie>;</>/>>;<j%>;<DS>;<ds>;<yi>
 Index: src/share/colldef/map.CP1251
 ===================================================================
 RCS file: src/share/colldef/map.CP1251
 diff -N src/share/colldef/map.CP1251
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ src/share/colldef/map.CP1251	29 Oct 2001 17:05:59 -0000
 @@ -0,0 +1,256 @@
 +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
 +! \x21
 +" \x22
 +Nb \x23
 +DO \x24
 +% \x25
 +& \x26
 +' \x27
 +( \x28
 +) \x29
 +* \x2a
 ++ \x2b
 +, \x2c
 +- \x2d
 +. \x2e
 +/ \x2f
 +0 \x30
 +1 \x31
 +2 \x32
 +3 \x33
 +4 \x34
 +5 \x35
 +6 \x36
 +7 \x37
 +8 \x38
 +9 \x39
 +: \x3a
 +; \x3b
 +< \x3c
 += \x3d
 +> \x3e
 +? \x3f
 +At \x40
 +A \x41
 +B \x42
 +C \x43
 +D \x44
 +E \x45
 +F \x46
 +G \x47
 +H \x48
 +I \x49
 +J \x4a
 +K \x4b
 +L \x4c
 +M \x4d
 +N \x4e
 +O \x4f
 +P \x50
 +Q \x51
 +R \x52
 +S \x53
 +T \x54
 +U \x55
 +V \x56
 +W \x57
 +X \x58
 +Y \x59
 +Z \x5a
 +<( \x5b
 +// \x5c
 +)> \x5d
 +'> \x5e
 +_ \x5f
 +'! \x60
 +a \x61
 +b \x62
 +c \x63
 +d \x64
 +e \x65
 +f \x66
 +g \x67
 +h \x68
 +i \x69
 +j \x6a
 +k \x6b
 +l \x6c
 +m \x6d
 +n \x6e
 +o \x6f
 +p \x70
 +q \x71
 +r \x72
 +s \x73
 +t \x74
 +u \x75
 +v \x76
 +w \x77
 +x \x78
 +y \x79
 +z \x7a
 +(! \x7b
 +!! \x7c
 +!) \x7d
 +'? \x7e
 +DT \x7f
 +D% \x80
 +G% \x81
 +.9 \x82
 +g% \x83
 +:9 \x84
 +.3 \x85
 +/- \x86
 +/= \x87
 +Eu \x88
 +%0 \x89
 +LJ \x8a
 +<1 \x8b
 +NJ \x8c
 +KJ \x8d
 +Ts \x8e
 +DZ \x8f
 +d% \x90
 +'6 \x91
 +'9 \x92
 +"6 \x93
 +"9 \x94
 +sb \x95
 +-N \x96
 +-M \x97
 +FB \x98
 +TM \x99
 +lj \x9a
 +>1 \x9b
 +nj \x9c
 +kj \x9d
 +ts \x9e
 +dz \x9f
 +NS \xa0
 +V% \xa1
 +v% \xa2
 +J% \xa3
 +Cu \xa4
 +G3 \xa5
 +BB \xa6
 +SE \xa7
 +IO \xa8
 +Co \xa9
 +IE \xaa
 +<< \xab
 +NO \xac
 +-- \xad
 +Rg \xae
 +YI \xaf
 +DG \xb0
 ++- \xb1
 +II \xb2
 +ii \xb3
 +g3 \xb4
 +My \xb5
 +PI \xb6
 +.M \xb7
 +io \xb8
 +N0 \xb9
 +ie \xba
 +>> \xbb
 +j% \xbc
 +DS \xbd
 +ds \xbe
 +yi \xbf
 +A= \xc0
 +B= \xc1
 +V= \xc2
 +G= \xc3
 +D= \xc4
 +E= \xc5
 +Z% \xc6
 +Z= \xc7
 +I= \xc8
 +J= \xc9
 +K= \xca
 +L= \xcb
 +M= \xcc
 +N= \xcd
 +O= \xce
 +P= \xcf
 +R= \xd0
 +S= \xd1
 +T= \xd2
 +U= \xd3
 +F= \xd4
 +H= \xd5
 +C= \xd6
 +C% \xd7
 +S% \xd8
 +Sc \xd9
 +=" \xda
 +Y= \xdb
 +%" \xdc
 +JE \xdd
 +JU \xde
 +JA \xdf
 +a= \xe0
 +b= \xe1
 +v= \xe2
 +g= \xe3
 +d= \xe4
 +e= \xe5
 +z% \xe6
 +z= \xe7
 +i= \xe8
 +j= \xe9
 +k= \xea
 +l= \xeb
 +m= \xec
 +n= \xed
 +o= \xee
 +p= \xef
 +r= \xf0
 +s= \xf1
 +t= \xf2
 +u= \xf3
 +f= \xf4
 +h= \xf5
 +c= \xf6
 +c% \xf7
 +s% \xf8
 +sc \xf9
 +=' \xfa
 +y= \xfb
 +%' \xfc
 +je \xfd
 +ju \xfe
 +ja \xff
 Index: src/share/mklocale/Makefile
 ===================================================================
 RCS file: /home/ncvs/src/share/mklocale/Makefile,v
 retrieving revision 1.37
 diff -u -r1.37 Makefile
 --- src/share/mklocale/Makefile	10 Jun 2001 18:53:43 -0000	1.37
 +++ src/share/mklocale/Makefile	29 Oct 2001 17:05:59 -0000
 @@ -3,7 +3,8 @@
  NOMAN=YES
  CLEANFILES+= ${LOCALES:S/$/.out/g}
  
 -LOCALES=        el_GR.ISO8859-7 \
 +LOCALES=	bg_BG.CP1251 \
 +		el_GR.ISO8859-7 \
  		ja_JP.eucJP \
  		ja_JP.SJIS \
  		ko_KR.eucKR \
 Index: src/share/mklocale/bg_BG.CP1251.src
 ===================================================================
 RCS file: src/share/mklocale/bg_BG.CP1251.src
 diff -N src/share/mklocale/bg_BG.CP1251.src
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ src/share/mklocale/bg_BG.CP1251.src	29 Oct 2001 17:05:59 -0000
 @@ -0,0 +1,35 @@
 +/*
 + * LOCALE_CTYPE for Bulgarian Cyrillic character set (CP1251)
 + */
 +ENCODING	"NONE"
 +VARIABLE        Bulgarian Cyrillic character set (CP1251) by roam@ringlet.net
 +
 +#
 +# 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.27
 diff -u -r1.27 Makefile
 --- src/share/monetdef/Makefile	10 Jun 2001 19:47:57 -0000	1.27
 +++ src/share/monetdef/Makefile	29 Oct 2001 17:05:59 -0000
 @@ -4,6 +4,7 @@
  CLEANFILES+= ${LOCALES:S/$/.out/g}
  
  LOCALES=        af_ZA.ISO8859-1 \
 +		bg_BG.CP1251 \
  		cs_CZ.ISO8859-2 \
  		da_DK.ISO8859-1 \
  		de_AT.ISO8859-1 \
 Index: src/share/monetdef/bg_BG.CP1251.src
 ===================================================================
 RCS file: src/share/monetdef/bg_BG.CP1251.src
 diff -N src/share/monetdef/bg_BG.CP1251.src
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ src/share/monetdef/bg_BG.CP1251.src	29 Oct 2001 17:05:59 -0000
 @@ -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.26
 diff -u -r1.26 Makefile
 --- src/share/msgdef/Makefile	10 Jun 2001 19:41:17 -0000	1.26
 +++ src/share/msgdef/Makefile	29 Oct 2001 17:05:59 -0000
 @@ -4,6 +4,7 @@
  CLEANFILES+= ${LOCALES:S/$/.out/g}
  
  LOCALES=        af_ZA.ISO8859-1 \
 +		bg_BG.CP1251 \
  		cs_CZ.ISO8859-2 \
  		da_DK.ISO8859-1 \
  		de_DE.ISO8859-1 \
 Index: src/share/msgdef/bg_BG.CP1251.src
 ===================================================================
 RCS file: src/share/msgdef/bg_BG.CP1251.src
 diff -N src/share/msgdef/bg_BG.CP1251.src
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ src/share/msgdef/bg_BG.CP1251.src	29 Oct 2001 17:05:59 -0000
 @@ -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.27
 diff -u -r1.27 Makefile
 --- src/share/numericdef/Makefile	10 Jun 2001 20:11:05 -0000	1.27
 +++ src/share/numericdef/Makefile	29 Oct 2001 17:05:59 -0000
 @@ -4,6 +4,7 @@
  CLEANFILES+= ${LOCALES:S/$/.out/g}
  
  LOCALES=        af_ZA.ISO8859-1 \
 +		bg_BG.CP1251 \
  		cs_CZ.ISO8859-2 \
  		da_DK.ISO8859-1 \
  		de_DE.ISO8859-1 \
 Index: src/share/numericdef/bg_BG.CP1251.src
 ===================================================================
 RCS file: src/share/numericdef/bg_BG.CP1251.src
 diff -N src/share/numericdef/bg_BG.CP1251.src
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ src/share/numericdef/bg_BG.CP1251.src	29 Oct 2001 17:05:59 -0000
 @@ -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.20
 diff -u -r1.20 Makefile
 --- src/share/timedef/Makefile	10 Jun 2001 19:16:43 -0000	1.20
 +++ src/share/timedef/Makefile	29 Oct 2001 17:05:59 -0000
 @@ -3,7 +3,8 @@
  NOMAN=YES
  CLEANFILES+= ${LOCALES:S/$/.out/g}
  
 -LOCALES=        cs_CZ.ISO8859-2 \
 +LOCALES=	bg_BG.CP1251 \
 +		cs_CZ.ISO8859-2 \
  		da_DK.ISO8859-1 \
  		de_AT.ISO8859-1 \
  		de_DE.ISO8859-1 \
 Index: src/share/timedef/bg_BG.CP1251.src
 ===================================================================
 RCS file: src/share/timedef/bg_BG.CP1251.src
 diff -N src/share/timedef/bg_BG.CP1251.src
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ src/share/timedef/bg_BG.CP1251.src	29 Oct 2001 17:07:24 -0000
 @@ -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)
 +#
 +Януари
 +Февруари
 +Март
 +Април
 +Май
 +Юни
 +Юли
 +Август
 +Септември
 +Октомври
 +Ноември
 +Декември
 +#
 +# md_order
 +#
 +dm
 +#
 +# ampm_fmt
 +%I:%M:%S %p
 +# EOF

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?200110301010.f9UAA1i24550>