NetBSD/share/locale/Makefile.locale

166 lines
3.9 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile.locale,v 1.2 2009/06/03 18:47:06 bouyer Exp $
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 03:20:18 +03:00
LANGUAGE= af be bg ca cs da de el en es \
et eu fi fr hr hu hy is it ja \
kk ko lt nl nn no pt pl ro ru \
sk sl sr sv tr uk zh
TERRITORY= AM AT AU BE BG BR BY CA CH CN \
CZ DE DK EE ES FI FR GB GR HK \
HR HU IS IT JP KR KZ LT ME NL \
NO NZ PL PT RO RS RU SE SI SK \
TR TW US UA ZA
LANGUAGE_AM= hy
LANGUAGE_AT= de
LANGUAGE_AU= en
LANGUAGE_BE= fr nl
LANGUAGE_BG= bg
LANGUAGE_BR= pt
LANGUAGE_BY= be ru
LANGUAGE_CA= en fr
LANGUAGE_CH= de fr it
LANGUAGE_CN= zh
LANGUAGE_CZ= cs
LANGUAGE_DE= de
LANGUAGE_DK= da
LANGUAGE_EE= et
LANGUAGE_ES= ca es au
LANGUAGE_FI= fi
LANGUAGE_FR= fr
LANGUAGE_GB= en
LANGUAGE_GR= el
LANGUAGE_HK= zh
LANGUAGE_HR= hr
LANGUAGE_HU= hu
LANGUAGE_IS= is
LANGUAGE_IT= it
LANGUAGE_JP= ja
LANGUAGE_KR= ko
LANGUAGE_KZ= kk
LANGUAGE_LT= lt
LANGUAGE_ME= sr
LANGUAGE_NL= nl
LANGUAGE_NO= nn no
LANGUAGE_NZ= en
LANGUAGE_PL= pl
LANGUAGE_PT= pt
LANGUAGE_RO= ro
LANGUAGE_RU= ru
LANGUAGE_SE= sv
LANGUAGE_SI= sl
LANGUAGE_SK= sk
LANGUAGE_TR= tr
LANGUAGE_TW= zh
LANGUAGE_US= en
LANGUAGE_UA= uk
LANGUAGE_ZA= af
TERRITORY_af= ZA
TERRITORY_be= BY
TERRITORY_bg= BG
TERRITORY_ca= ES
TERRITORY_cs= CZ
TERRITORY_da= DK
TERRITORY_de= AT CH DE
TERRITORY_el= GR
TERRITORY_en= AU CA GB NZ US
TERRITORY_es= ES
TERRITORY_et= EE
TERRITORY_eu= ES
TERRITORY_fi= FI
TERRITORY_fr= BE CA CH FR
TERRITORY_hr= HR
TERRITORY_hu= HU
TERRITORY_hy= AM
TERRITORY_is= IS
TERRITORY_it= CH IT
TERRITORY_ja= JP
TERRITORY_kk= KZ
TERRITORY_ko= KR
TERRITORY_lt= LT
TERRITORY_nl= BE NL
TERRITORY_nn= NO
TERRITORY_no= NO
TERRITORY_pt= BR PT
TERRITORY_pl= PL
TERRITORY_ro= RO
TERRITORY_ru= BY RU
TERRITORY_sk= SK
TERRITORY_sl= SI
TERRITORY_sr= ME RS
TERRITORY_sv= SE
TERRITORY_tr= TR
TERRITORY_uk= UA
TERRITORY_zh= CN HK TW
CODESET_af_ZA= ISO8859-1 ISO8859-15
CODESET_be_BY= ISO8859-5 CP1251
CODESET_bg_BG= CP1251
CODESET_ca_ES= ISO8859-1 ISO8859-15
CODESET_cs_CZ= ISO8859-2
CODESET_da_DK= ISO8859-1 ISO8859-15
CODESET_de_AT= ISO8859-1 ISO8859-15
CODESET_de_CH= ISO8859-1 ISO8859-15
CODESET_de_DE= ISO8859-1 ISO8859-15
CODESET_el_GR= ISO8859-7
CODESET_en_AU= ISO8859-1 ISO8859-15
CODESET_en_CA= ISO8859-1 ISO8859-15
CODESET_en_GB= ISO8859-1 ISO8859-15
CODESET_en_NZ= ISO8859-1 ISO8859-15
CODESET_en_US= US-ASCII UTF-8 ISO8859-1 ISO8859-15
CODESET_es_ES= ISO8859-1 ISO8859-15
CODESET_et_EE= ISO8859-15
CODESET_eu_ES= ISO8859-1 ISO8859-15
CODESET_fi_FI= ISO8859-1 ISO8859-15
CODESET_fr_BE= ISO8859-1 ISO8859-15 UTF-8
CODESET_fr_CA= ISO8859-1 ISO8859-15 UTF-8
CODESET_fr_CH= ISO8859-1 ISO8859-15 UTF-8
CODESET_fr_FR= ISO8859-1 ISO8859-15 UTF-8
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 03:20:18 +03:00
CODESET_hr_HR= ISO8859-2
CODESET_hu_HU= ISO8859-2
CODESET_hy_AM= ARMSCII-8
CODESET_is_IS= ISO8859-1 ISO8859-15
CODESET_it_CH= ISO8859-1 ISO8859-15
CODESET_it_IT= ISO8859-1 ISO8859-15
CODESET_ja_JP= eucJP SJIS ISO-2022-JP ISO-2022-JP-2 ct
CODESET_kk_KZ= PT154
CODESET_ko_KR= eucKR
CODESET_lt_LT= ISO8859-4 ISO8859-13
CODESET_nl_BE= ISO8859-1 ISO8859-15
CODESET_nl_NL= ISO8859-1 ISO8859-15
CODESET_nn_NO= ISO8859-1 ISO8859-15
CODESET_no_NO= ISO8859-1 ISO8859-15
CODESET_pt_BR= ISO8859-1
CODESET_pl_PL= ISO8859-2
CODESET_pt_PT= ISO8859-1 ISO8859-15
CODESET_ro_RO= ISO8859-2
CODESET_ru_BY= CP1251
CODESET_ru_RU= ISO8859-5 CP866 CP1251 KOI8-R
CODESET_sk_SK= ISO8859-2
CODESET_sl_SI= ISO8859-2
CODESET_sr_ME= ISO8859-2 ISO8859-5
CODESET_sr_RS= ISO8859-2 ISO8859-5
CODESET_sv_SE= ISO8859-1 ISO8859-15
CODESET_tr_TR= ISO8859-9
CODESET_uk_UA= ISO8859-5 CP1251 KOI8-U
CODESET_zh_CN= eucCN GB18030
CODESET_zh_HK= Big5hkscs
CODESET_zh_TW= Big5 eucTW
.for language in ${LANGUAGE}
.for territory in ${TERRITORY_${language}}
.for codeset in ${CODESET_${language}_${territory}}
LOCALES+=${language}_${territory}.${codeset}
.if empty(LOCALESRC_${language}_${territory}.${codeset})
LOCALESRC_${language}_${territory}.${codeset}= \
${language}_${territory}.${codeset}
.endif
FILESDIR_${language}_${territory}.${codeset}.out= \
${LOCALEDIR}/${language}_${territory}.${codeset}
FILESNAME_${language}_${territory}.${codeset}.out= \
${LOCALEFILE}
.endfor
.endfor
.endfor