NetBSD/share/locale/locale.alias
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00

135 lines
4.0 KiB
Plaintext

# $NetBSD: locale.alias,v 1.11 2009/01/02 00:20:21 tnozaki Exp $
#
# Locale aliases
#
# UTF-8 ctypes - These are the same as en_US.UTF-8 for now.
af_ZA.UTF-8/LC_CTYPE en_US.UTF-8
am_ET.UTF-8/LC_CTYPE en_US.UTF-8
be_BY.UTF-8/LC_CTYPE en_US.UTF-8
bg_BG.UTF-8/LC_CTYPE en_US.UTF-8
ca_ES.UTF-8/LC_CTYPE en_US.UTF-8
cs_CZ.UTF-8/LC_CTYPE en_US.UTF-8
da_DK.UTF-8/LC_CTYPE en_US.UTF-8
de_AT.UTF-8/LC_CTYPE en_US.UTF-8
de_CH.UTF-8/LC_CTYPE en_US.UTF-8
de_DE.UTF-8/LC_CTYPE en_US.UTF-8
el_GR.UTF-8/LC_CTYPE en_US.UTF-8
en_AU.UTF-8/LC_CTYPE en_US.UTF-8
en_CA.UTF-8/LC_CTYPE en_US.UTF-8
en_GB.UTF-8/LC_CTYPE en_US.UTF-8
en_NZ.UTF-8/LC_CTYPE en_US.UTF-8
es_ES.UTF-8/LC_CTYPE en_US.UTF-8
et_EE.UTF-8/LC_CTYPE en_US.UTF-8
eu_ES.UTF-8/LC_CTYPE en_US.UTF-8
fi_FI.UTF-8/LC_CTYPE en_US.UTF-8
fr_BE.UTF-8/LC_CTYPE en_US.UTF-8
fr_CA.UTF-8/LC_CTYPE en_US.UTF-8
fr_CH.UTF-8/LC_CTYPE en_US.UTF-8
fr_FR.UTF-8/LC_CTYPE en_US.UTF-8
he_IL.UTF-8/LC_CTYPE en_US.UTF-8
hr_HR.UTF-8/LC_CTYPE en_US.UTF-8
hu_HU.UTF-8/LC_CTYPE en_US.UTF-8
hy_AM.UTF-8/LC_CTYPE en_US.UTF-8
is_IS.UTF-8/LC_CTYPE en_US.UTF-8
it_CH.UTF-8/LC_CTYPE en_US.UTF-8
it_IT.UTF-8/LC_CTYPE en_US.UTF-8
ja_JP.UTF-8/LC_CTYPE en_US.UTF-8
kk_KZ.UTF-8/LC_CTYPE en_US.UTF-8
ko_KR.UTF-8/LC_CTYPE en_US.UTF-8
lt_LT.UTF-8/LC_CTYPE en_US.UTF-8
mn_MN.UTF-8/LC_CTYPE en_US.UTF-8
nb_NO.UTF-8/LC_CTYPE en_US.UTF-8
nl_BE.UTF-8/LC_CTYPE en_US.UTF-8
nl_NL.UTF-8/LC_CTYPE en_US.UTF-8
nn_NO.UTF-8/LC_CTYPE en_US.UTF-8
no_NO.UTF-8/LC_CTYPE en_US.UTF-8
pl_PL.UTF-8/LC_CTYPE en_US.UTF-8
pt_BR.UTF-8/LC_CTYPE en_US.UTF-8
pt_PT.UTF-8/LC_CTYPE en_US.UTF-8
ro_RO.UTF-8/LC_CTYPE en_US.UTF-8
ru_RU.UTF-8/LC_CTYPE en_US.UTF-8
sk_SK.UTF-8/LC_CTYPE en_US.UTF-8
sl_SI.UTF-8/LC_CTYPE en_US.UTF-8
sr_YU.UTF-8/LC_CTYPE en_US.UTF-8
sv_SE.UTF-8/LC_CTYPE en_US.UTF-8
tr_TR.UTF-8/LC_CTYPE en_US.UTF-8
uk_UA.UTF-8/LC_CTYPE en_US.UTF-8
zh_CN.UTF-8/LC_CTYPE en_US.UTF-8
zh_HK.UTF-8/LC_CTYPE en_US.UTF-8
zh_TW.UTF-8/LC_CTYPE en_US.UTF-8
# LC_MESSAGES - These are conveniently enabled for NLS.
af_ZA.UTF-8/LC_MESSAGES /FORCE
be_BY.UTF-8/LC_MESSAGES /FORCE
bg_BG.UTF-8/LC_MESSAGES /FORCE
ca_ES.UTF-8/LC_MESSAGES /FORCE
cs_CZ.UTF-8/LC_MESSAGES /FORCE
da_DK.UTF-8/LC_MESSAGES /FORCE
de_AT.UTF-8/LC_MESSAGES /FORCE
de_CH.UTF-8/LC_MESSAGES /FORCE
de_DE.UTF-8/LC_MESSAGES /FORCE
el_GR.UTF-8/LC_MESSAGES /FORCE
en_AU.UTF-8/LC_MESSAGES /FORCE
en_CA.UTF-8/LC_MESSAGES /FORCE
en_GB.UTF-8/LC_MESSAGES /FORCE
en_NZ.UTF-8/LC_MESSAGES /FORCE
es_ES.UTF-8/LC_MESSAGES /FORCE
et_EE.UTF-8/LC_MESSAGES /FORCE
eu_ES.UTF-8/LC_MESSAGES /FORCE
fi_FI.UTF-8/LC_MESSAGES /FORCE
fr_BE.UTF-8/LC_MESSAGES /FORCE
fr_CA.UTF-8/LC_MESSAGES /FORCE
fr_CH.UTF-8/LC_MESSAGES /FORCE
fr_FR.UTF-8/LC_MESSAGES /FORCE
hr_HR.UTF-8/LC_MESSAGES /FORCE
hu_HU.UTF-8/LC_MESSAGES /FORCE
hy_AM.UTF-8/LC_MESSAGES /FORCE
is_IS.UTF-8/LC_MESSAGES /FORCE
it_CH.UTF-8/LC_MESSAGES /FORCE
it_IT.UTF-8/LC_MESSAGES /FORCE
ja_JP.UTF-8/LC_MESSAGES /FORCE
kk_KZ.UTF-8/LC_MESSAGES /FORCE
ko_KR.UTF-8/LC_MESSAGES /FORCE
lt_LT.UTF-8/LC_MESSAGES /FORCE
nb_NO.UTF-8/LC_MESSAGES /FORCE
nl_BE.UTF-8/LC_MESSAGES /FORCE
nl_NL.UTF-8/LC_MESSAGES /FORCE
nn_NO.UTF-8/LC_MESSAGES /FORCE
no_NO.UTF-8/LC_MESSAGES /FORCE
pl_PL.UTF-8/LC_MESSAGES /FORCE
pt_BR.UTF-8/LC_MESSAGES /FORCE
pt_PT.UTF-8/LC_MESSAGES /FORCE
ro_RO.UTF-8/LC_MESSAGES /FORCE
ru_RU.UTF-8/LC_MESSAGES /FORCE
sk_SK.UTF-8/LC_MESSAGES /FORCE
sl_SI.UTF-8/LC_MESSAGES /FORCE
sr_YU.UTF-8/LC_MESSAGES /FORCE
sv_SE.UTF-8/LC_MESSAGES /FORCE
tr_TR.UTF-8/LC_MESSAGES /FORCE
uk_UA.UTF-8/LC_MESSAGES /FORCE
zh_CN.UTF-8/LC_MESSAGES /FORCE
zh_HK.UTF-8/LC_MESSAGES /FORCE
zh_TW.UTF-8/LC_MESSAGES /FORCE
# Pig locale
Pig/LC_MESSAGES /FORCE
# Linux/FreeBSD compatibility, EUC-CN == GB2312
zh_CN.GB2312 zh_CN.eucCN
# FreeBSD compatibility
zh_HK.Big5HKSCS zh_HK.Big5hkscs
# nb(Bokmal, Norwegian) == no(Norwegian)
nb_NO.ISO8859-1 no_NO.ISO8859-1
nb_NO.ISO8859-15 no_NO.ISO8859-15
# backward compatibility.
ja_JP.ISO2022-JP ja_JP.ISO-2022-JP
ja_JP.ISO2022-JP2 ja_JP.ISO-2022-JP-2
zh_HK.Big5-HKSCS zh_HK.Big5hkscs
zh_TW.BIG5 zh_TW.Big5