[BACK]Return to locale.alias CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / share / locale

File: [cvs.NetBSD.org] / src / share / locale / locale.alias (download)

Revision 1.11, Fri Jan 2 00:20:21 2009 UTC (12 years, 10 months ago) by tnozaki
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.10: +9 -9 lines

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.

# $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