Commit Graph

210 Commits

Author SHA1 Message Date
wiz dca9ccd375 Use St -isoC-9X instead of St -isoC9X, to be in sync with groff. 2003-09-08 17:54:31 +00:00
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
salo 99410184e7 netbsd.org->NetBSD.org 2003-07-26 19:24:24 +00:00
wiz 6156e5aaa0 Add missing dot a beginning of line. 2003-07-01 10:16:50 +00:00
kleink 0c9499738e Add LC_MESSAGES to the listing of categories; fixes PR misc/19829 from
FUKAUMI Naoki.
2003-05-30 12:11:48 +00:00
scw 1fe87ac688 The fourth parameter of _citrus_ctype_mbrtowc() is a size_t, not a
pointer type. So use 0 instead of NULL.
2003-04-29 14:53:12 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz b425910551 Typo and grammar fixes. Sort SEE ALSO. Use more mdoc. 2003-04-16 08:36:54 +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
scw 922be02781 Include <string.h> for strcmp(3) prototype. 2003-03-21 13:48:53 +00:00
wiz 42a6975065 Improve English, sort SEE ALSO.
XXX: list of valid charclasses should be added.
2003-03-17 08:49:46 +00:00
wiz f885d77c51 Drop trailing space. 2003-03-17 08:41:31 +00:00
wiz aae776727f Use .Dv in some places, add "function" in another, and sort SEE ALSO. 2003-03-17 08:33:45 +00:00
wiz 0d4f93ac07 Use Dv in some places, and sort SEE ALSO. 2003-03-17 08:29:44 +00:00
tshiozak 5e62671b2f changes for cross build on FreeBSD box.
- rename some macros and types defined in runetype.h.
 - move declarations of some global symbols to rune.h from runetype.h.
 - make sure the target sources use rune.h and mklocale use runetype.h.
I tested them on FreeBSD-4.6.2 box (./build.sh -m i386 tools).
2003-03-11 17:23:07 +00:00
tshiozak 3f9925f700 add wcstoll, wcstoimax, wcstoull and wcstoumax. (lib/20656)
- these are defined in C99 (wcsto[ui]max) and SUSv3.
  - these implementations are written by sigsegv@s25.xrea.com,
    derived from NetBSD's wcstol/wcstoul.
  - I just added some comments.
2003-03-11 09:21:22 +00:00
tshiozak 4f31053655 rename _CTYPE_x to _RUNETYPE_x for avoiding compile error on FreeBSD. 2003-03-10 21:18:50 +00:00
tshiozak 8328c33b65 rename _CTYPE_x to _RUNETYPE_x for avoiding compile error on FreeBSD. 2003-03-10 21:18:48 +00:00
tshiozak 75e29ba505 some changes around mklocale:
- clean up cpp directives.
- stop including rune.h from mklocale.
- stop using _BSD_RUNE_T macro.  instead, use int32_t directly in runetype.h.
- move _DEFAULT_INVALID_RUNE to runetype.h.
These were for historical reason on porting rune from FreeBSD,
but it seems that these are no longer reasonable but troublesome
under the current NetBSD build system.
additionally:
- runetype.h -> locale/runetype.h in mklocale, because this might conflict
  to FreeBSD's one.
2003-03-10 20:41:29 +00:00
tshiozak 326ed36874 changes related to lib/20576 and lib/20577.
- add wcstok() and wcswcs(),
  - add wcstok(3),
  - move btowc() and wctob() into each ctype modules,
  - bump ctype interface ABI version,
  - bump i18n modules' minor and
  - update sets.
and fix a stupid bug in _RUNE_ISCACHED macro.
2003-03-05 20:18:14 +00:00
yamt 4ff37a4920 no point to compare wint_t and EOF. 2003-03-04 15:09:54 +00:00
yamt da2254b6db iswctype: return 0 if charclass is 0. 2003-03-04 15:05:57 +00:00
yamt 36c89d3a8a wctob returns EOF, not WEOF. 2003-03-04 13:27:12 +00:00
tshiozak 188f0525a0 add manual pages for iswctype(), towctrans(), wctype() and wctrans(). 2003-03-04 12:11:49 +00:00
tshiozak ca7b6ea6df add #include <string.h> for memset(). 2003-03-04 10:35:31 +00:00
tshiozak 76c65c8cdb fix a latent bug; host structure was mistaken for file structure.
my latest changes actualize it on ISO8859-x locales.
2003-03-04 08:49:15 +00:00
tshiozak 498e0550aa use UINT32_C and PRIu32 macros instead of 0x...U and %u. 2003-03-03 08:49:15 +00:00
tshiozak 25563583a2 - add btowc.3 / wctob.3.
- fix an unappropriate comment in wctob.c
2003-03-03 08:24:58 +00:00
tshiozak 5af70bc478 - add wctob() function. (I forgot it at the last commit.)
- fix btowc(); I quite misunderstood about it.
2003-03-03 07:39:53 +00:00
tshiozak deb0dba1bc make sure rune.c to be compiled under WARNS=2. 2003-03-03 06:33:38 +00:00
tshiozak 31e2cbf0b5 add some ISO C 1995 I18N functions and types:
btowc, wctrans, towctrans, wcscoll, wcsxfrm, wctype_t and wctrans_t.
2003-03-02 22:18:11 +00:00
wiz d4ec441ada New sentence, new line; bump date for latest changes; mark LC_* up
consistently.
2003-02-12 18:57:27 +00:00
wiz 4f38f23550 Bump date for last changes, and add some dots. 2003-02-12 18:52:12 +00:00
gmcgarry 9cb61837ed Add some examples and Xrefs. 2003-02-12 02:48:59 +00:00
gmcgarry 5d7934424a Add some more details. 2003-02-12 02:46:57 +00:00
itojun b3399f001e KNF 2002-11-17 20:40:59 +00:00
thorpej d6e3c04143 Fix signed/unsigned comparison warnings. 2002-11-11 20:34:10 +00:00
thorpej 37843de109 Fix signed/unsigned comparison warnings. 2002-11-11 01:02:30 +00:00
wiz 3225ede1d3 New sentence, new line. From Robert Elz. 2002-10-01 17:02:56 +00:00
junyoung c9d0f1b653 towlower appeared twice in synopsis. 2002-10-01 17:00:22 +00:00
enami 8be6c4876d Rearrange code to avoid core dump and just return an error instead
when parsing a locale string previously returned by setlocale.
2002-08-07 04:42:42 +00:00
yamt e499009646 remove _StreamStateTable. 2002-08-03 11:10:51 +00:00
yamt 88a7c37398 remove a global variable "saved_categories" as it isn't necessary anymore. 2002-08-03 06:12:30 +00:00
tshiozak 0b03f5f98b remove an obstructive ?: operator of the check added in the last commit by
itojun-san.
2002-08-02 12:27:32 +00:00
itojun 73811081f9 correct use of strlcpy (really need to enforce length, so use memcpy) 2002-08-02 08:02:36 +00:00
tshiozak 19debadf5c fix a bug of setlocale when changing locales with LC_ALL for the first
argunemt and with a string containing many slashes for the second argument.
This bug may cause setlocale() to destroy static datas.

If a setuid program calls this function as 'setlocale(LC_ALL, "");',
this might be vulnerable, although there are few programs having such
vulnerability.  This bug probably affects every versions of NetBSD,
including 1.4, 1.5 and 1.6.

XXX: This part of setlocale is unseemly, thus we had better rewrite it in
the future.
2002-08-02 07:12:51 +00:00
yamt 38b935dc19 add CAVEATS. 2002-07-10 14:46:10 +00:00
yamt 67eaaa4e49 BUGS:
Multibyte locales aren't supported for static binaries.
2002-05-19 13:44:31 +00:00
kleink 3e9bbb1219 Need namespace.h for snprintf. 2002-04-17 13:40:35 +00:00
wiz 29a3d37fd5 Add HISTORY. 2002-04-09 20:00:05 +00:00