Readd Big5: some large databases setup are still requiring it.

Reported by:	"張君天(Chun-Tien Chang)" <tcs@kitty.2y.idv.tw>
This commit is contained in:
Baptiste Daroussin 2017-04-20 18:21:50 +00:00
parent 3876a56282
commit 50502545ce
19 changed files with 50656 additions and 52 deletions

View File

@ -63,14 +63,6 @@ OLD_FILES+=usr/tests/lib/libc/locale/io_test
# 20170319: remove nls for non supported Big5* locales
OLD_DIRS+=usr/share/nls/zh_HK.Big5HKSCS
OLD_DIRS+=usr/share/nls/zh_TW.Big5
# 20170319: Remove zh_TW.Big5
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_COLLATE
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_CTYPE
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_MESSAGES
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_MONETARY
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_NUMERIC
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_TIME
OLD_DIRS+=usr/share/locale/zh_TW.Big5
# 20170313: move .../sys/geom/eli/... to .../sys/geom/class/eli/...
OLD_FILES+=usr/tests/sys/geom/eli/pbkdf2/pbkdf2
OLD_FILES+=usr/tests/sys/geom/eli/pbkdf2/Kyuafile

View File

@ -897,6 +897,8 @@
..
zh_HK.UTF-8
..
zh_TW.Big5
..
zh_TW.UTF-8
..
..

View File

@ -5,7 +5,7 @@
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_COLLATE
.SUFFIXES: .src .LC_COLLATE
MAPLOC= ${.CURDIR}/../../tools/tools/locale/etc/final-maps
MAPLOC= ${SRCTOP}/tools/tools/locale/etc/final-maps
.src.LC_COLLATE:
localedef -D -U -i ${.IMPSRC} \
@ -158,6 +158,7 @@ LOCALES+= sr_RS.ISO8859-2
LOCALES+= sr_RS.ISO8859-5
LOCALES+= zh_CN.GB2312
LOCALES+= zh_CN.eucCN
LOCALES+= zh_TW.Big5
LOCALES+= zh_CN.GB18030
LOCALES+= zh_CN.GBK
LOCALES+= ja_JP.eucJP

16033
share/colldef/zh_TW.Big5.src Normal file

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
LOCALEDIR= ${SHAREDIR}/locale
FILESNAME= LC_CTYPE
.SUFFIXES: .src .LC_CTYPE
MAPLOC= ${.CURDIR}/../../tools/tools/locale/etc/final-maps
MAPLOC= ${SRCTOP}/tools/tools/locale/etc/final-maps
.src.LC_CTYPE:
localedef -D -U -c -w ${MAPLOC}/widths.txt \
@ -39,6 +39,7 @@ LOCALES+= zh_CN.GB18030
LOCALES+= zh_CN.GB2312
LOCALES+= zh_CN.GBK
LOCALES+= zh_CN.eucCN
LOCALES+= zh_TW.Big5

File diff suppressed because it is too large Load Diff

View File

@ -103,6 +103,7 @@ LOCALES+= zh_CN.GBK
LOCALES+= zh_CN.UTF-8
LOCALES+= zh_CN.eucCN
LOCALES+= zh_HK.UTF-8
LOCALES+= zh_TW.Big5
LOCALES+= zh_TW.UTF-8

View File

@ -0,0 +1,50 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale. The data is obtained from the
# CLDR project, obtained from http://cldr.unicode.org/
# -----------------------------------------------------------------------------
#
# int_curr_symbol (last character always SPACE)
¢â¢å¢Ò¡@
#
# currency_symbol
¢C
#
# mon_decimal_point
¡D
#
# mon_thousands_sep
¡A
#
# mon_grouping
3
#
# positive_sign
#
# negative_sign
¡Ð
#
# int_frac_digits
2
#
# frac_digits
2
#
# p_cs_precedes
1
#
# p_sep_by_space
0
#
# n_cs_precedes
1
#
# n_sep_by_space
0
#
# p_sign_posn
1
#
# n_sign_posn
1
# EOF

View File

@ -76,6 +76,7 @@ LOCALES+= zh_CN.GB2312
LOCALES+= zh_CN.GBK
LOCALES+= zh_CN.UTF-8
LOCALES+= zh_HK.UTF-8
LOCALES+= zh_TW.Big5
LOCALES+= zh_TW.UTF-8

View File

@ -0,0 +1,17 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale. The data is obtained from the
# CLDR project, obtained from http://cldr.unicode.org/
# -----------------------------------------------------------------------------
#
# yesexpr
^((是)|(確定)|([yY]([eE][sS])?)|([yY]))
#
# noexpr
^((否)|(不)|([nN]([oO])?)|([nN]))
#
# yesstr
是:確定:yes:y:YES:Y
#
# nostr
否:不:no:n:NO:N
# EOF

View File

@ -23,6 +23,7 @@ LOCALES+= uk_UA.KOI8-U
LOCALES+= uk_UA.UTF-8
LOCALES+= zh_CN.GB2312
LOCALES+= zh_CN.eucCN
LOCALES+= zh_TW.Big5

View File

@ -0,0 +1,14 @@
# Warning: Do not edit. This file is automatically generated from the
# tools in /usr/src/tools/tools/locale. The data is obtained from the
# CLDR project, obtained from http://cldr.unicode.org/
# -----------------------------------------------------------------------------
#
# decimal_point
¡D
#
# thousands_sep
¡A
#
# grouping
3
# EOF

View File

@ -6180,6 +6180,13 @@ OLD_FILES+=usr/share/locale/zh_HK.UTF-8/LC_MESSAGES
OLD_FILES+=usr/share/locale/zh_HK.UTF-8/LC_MONETARY
OLD_FILES+=usr/share/locale/zh_HK.UTF-8/LC_NUMERIC
OLD_FILES+=usr/share/locale/zh_HK.UTF-8/LC_TIME
OLD_DIRS+=usr/share/locale/zh_TW.Big5
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_COLLATE
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_CTYPE
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_MESSAGES
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_MONETARY
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_NUMERIC
OLD_FILES+=usr/share/locale/zh_TW.Big5/LC_TIME
OLD_DIRS+=usr/share/locale/zh_TW.UTF-8
OLD_FILES+=usr/share/locale/zh_TW.UTF-8/LC_COLLATE
OLD_FILES+=usr/share/locale/zh_TW.UTF-8/LC_CTYPE

View File

@ -35,6 +35,7 @@ COLLATION_SPECIAL?= \
sr_Cyrl_RS ISO8859-5 \
zh_Hans_CN GB2312 \
zh_Hans_CN eucCN \
zh_Hant_TW Big5 \
zh_Hans_CN GB18030 \
zh_Hans_CN GBK \
ja_JP eucJP \
@ -131,7 +132,8 @@ BASE_LOCALES_OF_INTEREST?= \
th_TH lo_LA bo_IN my_MM pa_Guru_IN ka_GE chr_US \
km_KH shi_Tfng_MA ii_CN vai_Vaii_LR vi_VN
ENCODINGS= CP1251 \
ENCODINGS= Big5 \
CP1251 \
CP866 \
CP949 \
eucCN \

View File

@ -188,6 +188,7 @@
countries="HK" />
<language name="zh"
family="Hant"
encoding="Big5"
countries="TW" />
</languages>
@ -402,101 +403,111 @@
<!-- Asian characters -->
<translation encoding="GB2312 eucCN" cldr="C"
unicode="FULLWIDTH LATIN CAPITAL LETTER C" />
<translation encoding="GB2312 eucCN" cldr="N"
<translation encoding="Big5" cldr="D"
unicode="FULLWIDTH LATIN CAPITAL LETTER D" />
<translation encoding="GB2312 eucCN Big5" cldr="N"
unicode="FULLWIDTH LATIN CAPITAL LETTER N" />
<translation encoding="Big5" cldr="T"
unicode="FULLWIDTH LATIN CAPITAL LETTER T" />
<translation encoding="Big5" cldr="W"
unicode="FULLWIDTH LATIN CAPITAL LETTER W" />
<translation encoding="GB2312 eucCN" cldr="Y"
unicode="FULLWIDTH LATIN CAPITAL LETTER Y" />
<translation encoding="GB2312 eucCN" cldr="one"
<translation encoding="GB2312 Big5 eucCN" cldr="one"
unicode="FULLWIDTH DIGIT ONE" />
<translation encoding="GB2312 eucCN" cldr="two"
<translation encoding="GB2312 Big5 eucCN" cldr="two"
unicode="FULLWIDTH DIGIT TWO" />
<translation encoding="GB2312 eucCN" cldr="three"
<translation encoding="GB2312 Big5 eucCN" cldr="three"
unicode="FULLWIDTH DIGIT THREE" />
<translation encoding="GB2312 eucCN" cldr="four"
<translation encoding="GB2312 Big5 eucCN" cldr="four"
unicode="FULLWIDTH DIGIT FOUR" />
<translation encoding="GB2312 eucCN" cldr="five"
<translation encoding="GB2312 Big5 eucCN" cldr="five"
unicode="FULLWIDTH DIGIT FIVE" />
<translation encoding="GB2312 eucCN" cldr="six"
<translation encoding="GB2312 Big5 eucCN" cldr="six"
unicode="FULLWIDTH DIGIT SIX" />
<translation encoding="GB2312 eucCN" cldr="seven"
<translation encoding="GB2312 Big5 eucCN" cldr="seven"
unicode="FULLWIDTH DIGIT SEVEN" />
<translation encoding="GB2312 eucCN" cldr="eight"
<translation encoding="GB2312 Big5 eucCN" cldr="eight"
unicode="FULLWIDTH DIGIT EIGHT" />
<translation encoding="GB2312 eucCN" cldr="nine"
<translation encoding="GB2312 Big5 eucCN" cldr="nine"
unicode="FULLWIDTH DIGIT NINE" />
<translation encoding="GB2312 eucCN" cldr="zero"
<translation encoding="GB2312 Big5 eucCN" cldr="zero"
unicode="FULLWIDTH DIGIT ZERO" />
<translation encoding="GB2312 eucCN" cldr="space"
<translation encoding="GB2312 eucCN Big5" cldr="space"
unicode="IDEOGRAPHIC SPACE" />
<translation encoding="GB2312 eucCN" cldr="FULL STOP"
<translation encoding="GB2312 eucCN Big5" cldr="FULL STOP"
unicode="FULLWIDTH FULL STOP" />
<translation encoding="GB2312 eucCN" cldr="SOLIDUS"
<translation encoding="GB2312 eucCN Big5" cldr="SOLIDUS"
unicode="FULLWIDTH SOLIDUS" />
<translation encoding="GB2312 eucCN" cldr="COMMA"
<translation encoding="GB2312 eucCN Big5" cldr="COMMA"
unicode="FULLWIDTH COMMA" />
<translation encoding="GB2312 eucCN" cldr="HYPHEN-MINUS"
<translation encoding="GB2312 eucCN Big5" cldr="HYPHEN-MINUS"
unicode="FULLWIDTH HYPHEN-MINUS" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="Big5" cldr="DOLLAR SIGN"
unicode="FULLWIDTH DOLLAR SIGN" />
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E00" ucc="4E00" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E03" ucc="4E03" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E09" ucc="4E09" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E0A" ucc="4E0A" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E0B" ucc="4E0B" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E0D" ucc="4E0D" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E5D" ucc="4E5D" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E8C" ucc="4E8C" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-4E94" ucc="4E94" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-516B" ucc="516B" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-516D" ucc="516D" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-5206" ucc="5206" />
<translation encoding="eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-524D" ucc="524D" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-5341" ucc="5341" />
<translation
encoding="GB2312 GB18030 GBK eucCN eucJP SJIS"
encoding="GB2312 GB18030 GBK Big5 eucCN eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-5348" ucc="5348" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-5426" ucc="5426" />
<translation encoding="GB2312 GB18030 GBK eucCN"
cldr="CJK UNIFIED IDEOGRAPH-5468" ucc="5468" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-56DB" ucc="56DB" />
<translation encoding="eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-571F" ucc="571F" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-5B9A" ucc="5B9A" />
<translation
encoding="GB2312 GB18030 GBK eucCN eucJP SJIS"
encoding="GB2312 GB18030 GBK Big5 eucCN eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-5E74" ucc="5E74" />
<translation encoding="eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-5F8C" ucc="5F8C" />
<translation
encoding="GB2312 GB18030 GBK eucCN eucJP SJIS"
encoding="GB2312 GB18030 GBK Big5 eucCN eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-65E5" ucc="65E5" />
<translation encoding="GB2312 GB18030 GBK eucCN"
cldr="CJK UNIFIED IDEOGRAPH-65F6" ucc="65F6" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-661F" ucc="661F" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-662F" ucc="662F" />
<translation encoding="Big5 "
cldr="CJK UNIFIED IDEOGRAPH-6642" ucc="6642" />
<translation encoding="eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-66DC" ucc="66DC" />
<translation
encoding="GB2312 GB18030 GBK eucCN eucJP SJIS"
encoding="GB2312 GB18030 GBK Big5 eucCN eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-6708" ucc="6708" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-671F" ucc="671F" />
<translation encoding="eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-6728" ucc="6728" />
@ -506,8 +517,12 @@
cldr="CJK UNIFIED IDEOGRAPH-706B" ucc="706B" />
<translation encoding="GB2312 GB18030 GBK eucCN"
cldr="CJK UNIFIED IDEOGRAPH-786E" ucc="786E" />
<translation encoding="GB2312 GB18030 GBK eucCN"
<translation encoding="Big5 "
cldr="CJK UNIFIED IDEOGRAPH-78BA" ucc="78BA" />
<translation encoding="GB2312 GB18030 GBK Big5 eucCN"
cldr="CJK UNIFIED IDEOGRAPH-79D2" ucc="79D2" />
<translation encoding="Big5 "
cldr="CJK UNIFIED IDEOGRAPH-9031" ucc="9031" />
<translation encoding="eucJP SJIS"
cldr="CJK UNIFIED IDEOGRAPH-91D1" ucc="91D1" />
<translation encoding="eucKR"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -168,6 +168,7 @@ elsif ($codeset eq "eucJP") { $max_mb = 3 }
elsif ($codeset eq "eucKR") { $max_mb = 2 }
elsif ($codeset eq "GBK") { $max_mb = 2 }
elsif ($codeset eq "GB2312") { $max_mb = 2 }
elsif ($codeset eq "Big5") { $max_mb = 2 }
else { $max_mb = 1 };
print("<code_set_name> \"$codeset\"\n");
print("<mb_cur_min> 1\n");

View File

@ -124,7 +124,7 @@ then
/usr/bin/sed -E -e 's/[ ]+/ /g' \
${CLDRDIR}/posix/eucCN.cm \
> ${base}/../etc/final-maps/map.GB2312
CHARMAPS="ARMSCII-8 CP1131 CP1251 \
CHARMAPS="ARMSCII-8 Big5 CP1131 CP1251 \
CP866 GBK ISCII-DEV ISO8859-1 \
ISO8859-13 ISO8859-15 ISO8859-2 ISO8859-4 \
ISO8859-5 ISO8859-7 ISO8859-9 KOI8-R KOI8-U \