NetBSD/lib/libc/string
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
..
__strsignal.c
_strerror_r.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
_strlcat.c compat core reorg. 2005-09-13 01:44:08 +00:00
_strlcpy.c compat core reorg. 2005-09-13 01:44:08 +00:00
bcmp.3
bcopy.3
bm.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
bm.c
bstring.3 o Removed functions that are in strings.h, not string.h 2007-02-17 09:04:57 +00:00
bzero.3
ffs.3
index.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
index.c Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
Lint_bcmp.c
Lint_bcopy.c
Lint_bzero.c
Lint_ffs.c
Lint_index.c
Lint_memccpy.c
Lint_memchr.c
Lint_memcmp.c
Lint_memcpy.c
Lint_memmove.c
Lint_memset.c
Lint_rindex.c
Lint_strcat.c
Lint_strchr.c
Lint_strcmp.c
Lint_strcpy.c
Lint_strlen.c
Lint_strncat.c
Lint_strncmp.c
Lint_strncpy.c
Lint_strrchr.c
Lint_swab.c
Makefile.inc Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format. 2009-01-02 00:20:18 +00:00
memccpy.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
memccpy.c
memchr.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
memcmp.3
memcpy.3
memmem.3 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
memmem.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
memmove.3
memset.3
rindex.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
rindex.c Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
strcasecmp.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strcasestr.c WARNS=4 2005-11-29 03:11:58 +00:00
strcat.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strchr.3
strcmp.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strcoll.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strcoll.c
strcpy.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strcspn.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strcspn.c Before using the slightly more involved bitmap tables, 2008-07-30 16:13:59 +00:00
strdup.3 Note that strndup was recently (4.0) added. Bump date. 2008-06-22 11:02:07 +00:00
strdup.c
strerror_r.c - Fix the remaining indr_references so that they define lint symbols. 2005-07-30 15:21:20 +00:00
strerror.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strerror.c Must include "namespace.h" for strerror_r()'s internal name. 2006-01-26 11:13:42 +00:00
stresep.c Fix stresep(3) handling of consecutive quoted delimiter characters. 2007-12-06 22:07:07 +00:00
string.3 Add strings(3), collecting information about strings.h. 2007-02-17 09:32:57 +00:00
strings.3 Add strings(3), collecting information about strings.h. 2007-02-17 09:32:57 +00:00
strlcpy.3
strlen.3
strmode.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strmode.c Include nbtool_config.h for tools build. This was part of the 2006-10-07 22:04:18 +00:00
strncat.c Make these work with _FORTIFY_SOURCE, by overriding the fortified definitions 2007-06-03 17:39:26 +00:00
strndup.c Add strndup(3) to libnbcompat, since estrndup(3) added into efun.c calls it. 2007-07-03 12:11:09 +00:00
strpbrk.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strpbrk.c pacify lint. 2008-09-24 16:58:53 +00:00
strrchr.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strsep.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strsignal.3
strsignal.c WARNS=4 2005-11-29 03:11:58 +00:00
strspn.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strspn.c Before using the slightly more involved bitmap tables, 2008-07-30 16:13:59 +00:00
strstr.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
strtok_r.c
strtok.3 Grammar police. 2008-08-29 05:48:40 +00:00
strtok.c Implement strtok() in terms of strtok_r() 2004-10-27 19:12:31 +00:00
strxfrm.3 Bump date for previous. 2007-02-18 00:46:47 +00:00
strxfrm.c
swab.3
swab.c
wcscasecmp.3 Mark up NULL; the character is nul, not null; sort SEE ALSO; 2006-09-02 23:49:02 +00:00
wcscasecmp.c Add copyright notices. 2006-08-26 22:45:52 +00:00
wcscat.c
wcschr.c Only advance 'p' once each time around the loop.... 2005-06-04 20:09:56 +00:00
wcscmp.c Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format. 2009-01-02 00:20:18 +00:00
wcscpy.c wcscpy - cleanup 2005-10-13 21:13:05 +00:00
wcscspn.c
wcsdup.3 Mark up NULL; the character is nul, not null; sort SEE ALSO; 2006-09-02 23:49:02 +00:00
wcsdup.c Remove unneeded #include <string.h>, found by Adam Hoka. 2008-05-26 13:17:48 +00:00
wcslcat.c
wcslcpy.c
wcslen.c
wcsncasecmp.c Add copyright notices. 2006-08-26 22:45:52 +00:00
wcsncat.c
wcsncmp.c Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format. 2009-01-02 00:20:18 +00:00
wcsncpy.c wcscpy - cleanup 2005-10-13 21:13:05 +00:00
wcspbrk.c WARNS=4 2005-11-29 03:11:58 +00:00
wcsrchr.c WARNS=4 2005-11-29 03:11:58 +00:00
wcsspn.c
wcsstr.c WARNS=4 2005-11-29 03:11:58 +00:00
wcstok.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
wcstok.c
wcswcs.c
wcswidth.3 nul/null/NULL cleanup: 2006-10-16 08:48:45 +00:00
wmemchr.3 New sentence, new line. 2006-10-14 07:52:15 +00:00
wmemchr.c WARNS=4 2005-11-29 03:11:58 +00:00
wmemcmp.c Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format. 2009-01-02 00:20:18 +00:00
wmemcpy.c
wmemmove.c
wmemset.c