Commit Graph

59 Commits

Author SHA1 Message Date
yamt
c5c3bb4159 fix mbtowc to return if the encoding's state-dependent or not
correctly.
2002-03-25 19:40:35 +00:00
yamt
ede3d88aad calculate the return value of wcsrtombs correctly
for stateful encodings.
2002-03-25 19:10:45 +00:00
yamt
c87321b3bf remove unneeded ARGSUSED. 2002-03-18 10:52:55 +00:00
yamt
a8bb4f07ee don't set errno here. caller will set it. 2002-03-18 10:01:12 +00:00
yamt
d9660875a9 move definition of _citrus_ctype_default out of #ifdef _I18N_DYNAMIC
as it's used by static binaries.
2002-03-18 09:02:50 +00:00
yamt
4ac8cfbb1d don't check variable s0 before assign. 2002-03-18 08:56:32 +00:00
yamt
1d869db224 make mbsrtowcs work.(fix a typo) 2002-03-18 08:09:28 +00:00
tshiozak
d1902c2111 fix a bug; calling mbtowc(0, 0, 0) causes the programs to crash under
single byte locales.
2002-03-18 05:50:25 +00:00
tshiozak
dc7d18ff88 refine i18n stuffs.
- add libc/citrus directory.
    this directory contains the common stuffs not only for locale
    but also other facilities relating to i18n (e.g. iconv).
  - To keep the binary compatibility for the ctype modules easily,
    the interface between libc and the modules is simplified.
  - For the future integrated extension, module pool is renamed
    from "/usr/lib/runemodule" to "/usr/lib/i18n".
    In the future, this directory will contain the modules for "iconv",
    "collation", etc.
  - some cosmetic changes.
  - Bug fix for runetype.h; __attribute__((__packed__)) is placed at
    the wrong position and it is invalid unintentionally.
    But, the all members of the structures seem well-aligned.  Thus,
    this bug causes no problem, hopefully.

HEADS UP:
  - /usr/lib/rumemodule is obsoleted.  If you use the multibyte locales,
    you need to install /usr/lib/i18n/* from sys/lib/i18n_module .
  - The binary compatibility of /usr/share/locale/*/LC_CTYPE is probably kept.
    Perhaps, the bug fix about __packed__ mentioned above breaks the
    compatibility...  Be careful especially on 64bit platforms.
2002-03-17 22:14:05 +00:00