Commit Graph

8 Commits

Author SHA1 Message Date
yamt
d14a2355eb sync with latest Citrus XPG4DL.
- mbsrtowcs/wcsrtombs
	- when conversion stopped with terminating-null, set *src null-pointer.
	- if dst isn't null, ignore len.
	- fix how to treat ___mbrtowc
- mbrtowc
	- fix problem that terminating null charactor wasn't stored.
	- fix problem with stateful encoding.
		(when src points to escape sequence + '\0', mbstate wasn't initialized)
	- fix return value when restarted.
		XXX euctw and big5 are not tested.
- iso2022-jp
	- fix mbrtowc with imcomplete sequence.
- etc
	- make sure mbstate is initialized. (___rune_initstate is called)
		primarily to fix mbsinit for iso2022.
	- sync citrus Id
2001-06-21 02:20:24 +00:00
tshiozak
636743250b fix a bit bug. this bug normally causes no problem. 2001-03-26 20:06:46 +00:00
itojun
1aba0c48bc split setlocale.c for smaller footprint (do not pull things in too much).
have magic number check in locale modules.
rename: lib/libc/locale/setlocale_sb.c -> setlocale1.c

NOTE: this commit does not enable multibyte locale support, yet.
2001-01-25 01:25:05 +00:00
lukem
2e9d6ac8c1 sprinkle in _DIAGASSERT() as appropriate 2001-01-03 15:23:26 +00:00
itojun
b648355aae put _RuneLocale pointer into mbstate_t for better thread safeness 2000-12-30 05:05:57 +00:00
itojun
2ea22179ea switch locale module API, from s{get,put}rune to wcrtomb/mbrtowc.
handle intermediate mbstate_t more correctly.
no externally-visible changes here.
2000-12-28 05:22:27 +00:00
itojun
7448c8b5b4 avoid duplicated free() on initialization failure 2000-12-23 11:53:46 +00:00
itojun
6bfa292b5d add multibyte locale converters (just for use by testers at this moment,
to be built as dynamically loadable binary)
2000-12-21 12:17:35 +00:00