Commit Graph

50 Commits

Author SHA1 Message Date
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 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 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
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
jmmv 4f7db6cd44 Finally add complete support for Catalan (ca_ES, ca) LC_CTYPE and libc
catalog messages.
Thanks to salo for letting me know what was missing.
2003-04-13 09:48:18 +00:00
tshiozak 6ca2252907 - support for the additional code area of zh_CN.GB18030 locale,
- make sure that __nbrune_t is unsigned 32bit clean and
- fix wrong copyright notice in the last commit.
this patch is contributed by Takehiko NOZAKI <sigsegv at s25 dot xrea dot com>.
2003-04-06 18:33:23 +00:00
tshiozak c2cadb8a46 add support for zh_CN.GB18030 locale.
(lib/20835 by sigsegv at s25 dot xrea dot com)
XXX: charclass for GBK compatible area is not supported.
2003-03-25 18:26:51 +00:00
thorpej c7668999ad If we're preprocessing with cpp, it's not a very good idea to use
"#" as a comment character; use "//" in those places, instead.
2002-12-06 02:50:21 +00:00
lukem 58a44e7ae0 use NETBSDSRCDIR as appropriate 2002-09-18 02:51:46 +00:00
thorpej 69d62447b8 Use ${CPP}, not cpp. 2002-09-15 16:01:17 +00:00
junyoung f1216cb905 Replace with a much better one which covers the whole Unicode range,
from U+0000 to U+FFFF.

Contributed by Hye-Shik Chang <perky@freebsd.org>. Thanks, perky!
2002-07-15 13:40:06 +00:00
tshiozak 973a95f068 add LC_CTYPE for sk_SK.ISO8859-2, by Lubomir Sedlacik. 2002-07-09 09:00:30 +00:00
jdolecek bab1dc1428 Add character 0xbe (uppercase Y diaeresis) to UPPER chars.
Fixes misc/15363 by Joachim Kuebart.
2002-01-25 23:40:42 +00:00
lukem b0b0a32ad7 Set NOxxx= before <bsd.own.mk> is pulled in (even indirectly).
Otherwise the appropriate MKxxx=no won't be defined .
2001-12-12 12:24:19 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
tshiozak 0c95c16c79 Remove UTF-2. UTF-2 is superceded by UTF-8.
see also:
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0000.html
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0001.html
http://mail-index.netbsd.org/tech-userlevel/2001/03/30/0002.html
2001-04-01 17:43:07 +00:00
tshiozak b62c5889f4 support nl_langinfo(CODESET). 2001-03-26 19:56:35 +00:00
itojun e80503da97 integrate Makefile.inc and Makefile. use bsd.files.mk to avoid installation
with cmp(1).
2001-02-01 19:46:42 +00:00
itojun 64a16b4f7e ru_SU locales are deprecated, ru_RU is now correct one.
rename LC_CTYPE locale declarations and vi message catalog.

From: Oleg Polyanski <luke@jetinf.com>
2001-01-22 17:48:15 +00:00
itojun 8760b352ac supply ru_RU.* LC_CTYPE locales.
From: Patrick Welche <prlw1@newn.cam.ac.uk>
2001-01-20 16:33:02 +00:00
itojun e3f54d12af move src/share/mklocale into src/share/locale/ctype. PR 11838. 2000-12-30 02:33:04 +00:00