Commit Graph

69 Commits

Author SHA1 Message Date
joerg 6f9c8629a8 Remove duplicate zh entry. 2013-08-19 22:34:41 +00:00
joerg 491bae4a02 Add forgotten conversions of ja_JP for the COMPOUND_TEXT encoding. 2013-08-11 22:13:56 +00:00
joerg d1c1419eb8 Provide UTF-8 variants for all existing locales. The data is derived
from the Unicode Common Locale Data Repository.

Convert non-UTF-8 versions from the UTF-8 version using iconv and some
ad-hoc transliterations using sed.

Use EUR as currency_symbol in ISO8859-1.

Invert the Norwegian handling. no_NO is an alias for nb_NO as the latter
is used e.g. in CLDR.

Provide the Serbian locales in both Cyrilic and Latin script versions.
The alias is choosen based on the character set for the non-UTF-8 case
and Cyrillic is the default for UTF-8.
2013-08-11 22:09:40 +00:00
mbalmer 60da905091 Fix a typo: Affrimative -> Affirmative. 2013-06-17 11:05:42 +00:00
tnozaki c264671cd8 fix PR lib/46772 wcwidth of combining characters.
patch probyted by yamt@, thanks.
2012-08-08 18:40:37 +00:00
martin 64484e6359 German uses dot as thousands separator 2011-03-15 15:30:52 +00:00
bouyer d478d33fa1 Add support for fr_*.UTF-8 locale. Setting LANG to fr_*.UTF-8 won't get
the message catalog right (they're encoded in iso-8859-1), but other locale
functions should work right.
Proposed on tech-userlevel on 20 May 2009.
2009-06-03 18:47:05 +00:00
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
apb f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
tnozaki 76b2ef13b2 add alias for XFree86 compatibility. 2008-06-21 07:06:01 +00:00
ginsbach 2624ccf202 The hi_IN.ISCII-dev locales shouldn't be installed as there is no support
for this code set in LC_CTYPE nor iconv(3).
2008-06-04 13:19:31 +00:00
ginsbach b750bd80b0 Add some more LC_TYPE aliases. OK'ed by tnozaki. 2008-05-30 03:24:02 +00:00
ginsbach 008c3f646e These are really aliases for zh_CN.eucCN. This was a redundancy that
was incorrectly copied from FreeBSD.  OK'ed by tnozaki.
2008-05-30 03:12:59 +00:00
ginsbach 9a7780f955 Use ${TOOL_SED} instead of sed. 2008-05-24 02:56:55 +00:00
ginsbach 14f5b96735 Add locale category files for LC_TIME. These are sourced from FreeBSD
with modifications to the comments and sorted properly for NetBSD.
Additional Makefile work is still needed to generate the links for locales
with shared category files.
2008-05-17 04:11:29 +00:00
ginsbach 74c7f35ad9 Add locale category files for LC_NUMERIC. These are sourced from FreeBSD
with only modifications to the comments.  Additional Makefile work is
still needed to generate the links for locales with shared category files.
2008-05-17 04:07:29 +00:00
ginsbach ae1920a444 Add locale category files for LC_MONETARY. These are sourced from FreeBSD
with only modifications to the comments.  Additional Makefile work is
still needed to generate the links for locales with shared category files.
2008-05-17 04:05:51 +00:00
ginsbach ad33e5af01 Add locale category files for LC_MESSAGES. These are sourced from FreeBSD
with only modifications to the comments.  Additional Makefile work is
still needed to generate the links for locales with shared category files.
2008-05-17 03:57:50 +00:00
tnozaki aeadbd280f add tr_TR.ISO8859-9 locale. 2007-03-14 15:49:25 +00:00
tnozaki ab9a36c548 add nn_NO(Nynorsk) and nb_NO(Bokmal) locale. 2007-03-08 16:26:26 +00:00
tnozaki 806c2e8ee3 add zh_HK.Big5-HKSCS locale, derrived from FreeBSD. 2007-03-06 15:50:45 +00:00
tnozaki 57f0023ef8 catch up KS X 1001:2002: added U+327E - CIRCLED HANGUL IEUNG U. 2006-12-04 15:01:42 +00:00
tnozaki 309c4c3cc7 corrrect invalid charset mask. 2006-07-16 10:42:26 +00:00
tnozaki 41efa2e2cd 1. added CNS11643 plane 3 <-> UCS iconv data.
2. zh_TW.eucTW locale now supports CNS11643 plane 3 ~ 7
2006-07-16 06:13:29 +00:00
tnozaki 68099f2838 1. make fullwidth space as printble(also blank).
suggested by yamt-san.
2. JISX0201 2/1 - 2/5 is not phonogram, change it as punct.
2006-04-11 18:45:03 +00:00
tnozaki 307ce80709 add kk_KZ.PT154 locale and iconv support for PTCP154. 2006-03-28 14:44:00 +00:00
tnozaki 55e54105e0 1. remove duplicated entry(et_EE.UTF-8).
2. add missing LC_MESSAGES alias.
   during cvs diff -r1.2, following locale aliases are introduced:
	+ af_ZA.UTF-8
	+ be_BY.UTF-8
	+ en_NZ.UTF-8
	+ et_EE.UTF-8
	+ eu_ES.UTF-8
	+ pt_BR.UTF-8
	+ ro_RO.UTF-8
	+ sr_YU.UTF-8	<- en_US.UTF-8
	+ zh_CN.GB2312	<- zh_CN.eucCN (for Linux/FreeBSD compatibility)
2006-03-24 11:54:52 +00:00
tnozaki ade0b1e1b5 add following locales:
af_AZ.ISO8859-1/15
	be_BY.ISO8859-5
	en_NZ.ISO8859-1/15
	et_EE.ISO8859-15
	eu_ES.ISO8859-1/15
	pt_BR.ISO8859-1
	ro_RO.ISO8859-2
	sr_YU.ISO8859-2/5
	ukUA.CP1251/ISO8859-5
2006-03-23 23:23:38 +00:00
tnozaki 2a441a26bc fix invalid charset-bit. 2006-03-17 16:25:06 +00:00
tnozaki 10269f58df added be_BY.CP1251, ru_BY.CP1251, ru_RU.CP1251 locale.
requested by cheusov AT tut DOT by, thanks.
2006-03-14 16:16:44 +00:00
tnozaki a3b248100e add csmapper:CNS11643-1,2 and esdb:ISO-2022-CN,
integrate esdb:EUC-TW, locale:zh_TW.eucTW.
2005-03-27 22:30:05 +00:00
tshiozak aaa316a46c add tab and several characters to BLANK and SPACE classes on the Latin
charsets to make up for shortages.
pointed out by Joerg Sonnenberger.
2005-03-09 11:54:13 +00:00
tshiozak b115b9ec4f fix XDIGIT problem on several locales,
pointed by Joerg Sonnenberger on tech-userlevel@.
2005-03-08 06:35:13 +00:00
tnozaki 9cc920cfc1 merge resent FreeBSD UTF-8 locale.
now support outside BMP area.
2005-02-10 18:12:42 +00:00
tnozaki fcff889a4d remove ko_KR.UTF-8.
this locale is alias for en_US.UTF-8 by locale.alias now.
2005-02-10 18:03:01 +00:00
tnozaki d65a4ead10 fix invalid range. 2005-02-04 18:35:45 +00:00
tnozaki 4b07a87f1d fix invalid range. 2005-01-16 20:15:35 +00:00
ian 70f35b6f77 Remove support for ALIASES in share/locale/ctype/Makefile, which
created symlinks in the filesystem.  Put the one existing alias
(zh_TW.BIG5) into the newer locale.alias file.
2004-09-10 15:12:51 +00:00
tshiozak 3407ed183f add the default locale.alias. 2004-07-21 19:02:17 +00:00
itojun a60209cdf0 for platforms that has problem with c++ comment, switch to good old /* */ 2004-06-24 03:28:50 +00:00
tshiozak 45f22bd0e2 To prevent ctype predicate functions (e.g. isalpha()) to misjudge,
change the charset mask for G2 (JIS X 0201 kana), from 0x80 to 0x800080.
2004-05-13 09:57:03 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem e7cffe140c implement MAKEVERBOSE 2003-10-19 14:10:13 +00:00
lukem fa6713d480 use the correct comment style... 2003-10-19 09:47:40 +00:00
junyoung 54df754e6e Sort unsorted entries in last commit. 2003-09-02 10:29:27 +00:00
junyoung 2b86c997a6 Sort entries by name. 2003-09-02 10:26:46 +00:00
junyoung d1c665c08e Add UTF-8 ctype locale support for Korean.
From Min Sik Kim <minskim bawi org>. tshiozak@ ok.
2003-09-02 09:30:31 +00:00
tshiozak 1c3ee5c3d3 change comment style: # -> // 2003-07-23 06:52:31 +00:00
tshiozak e0d4d9ac4d add new locales - bg_BG.CP1251 el_GR.ISO8859-7 hy_AM.ARMSCII-8 lt_LT.ISO8859-13
These are obtained from FreeBSD. Thanks!
2003-07-21 17:41:16 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00