Adding mbstate_t, mbsinit(), mbrtowc(), mbrlen() etc.

Kazuhiro Fujieda fujieda@jaist.ac.jp
Wed Sep 4 19:37:00 GMT 2002


>>> On Wed, 04 Sep 2002 20:32:30 -0400
>>> "J. Johnston" <jjohnstn@redhat.com> said:

>   This is just to let you know that I am working on fixing the
> behavior of the restartable functions to work properly.  I
> already have C-JIS working for _mbrtowc_r which should be the
> most difficult of the bunch.  I wanted you to know so you do
> not waste any time by making similar modifications.

Thank you. I'm glad to hear it.
Are you going to work on others?
If so, there is a point to notice on C-UTF-8.

The motivation to define WCHAR_MAX is that this is necessary to
write C-UTF-8 part of _mbrtowc_r properly. If wchar_t doesn't
have enough size to contain an UCS-4 character, _mbrtowc_r have
to return EILSEQ against a multibyte character larger than 4
bytes in UTF-8 encoding.
____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  Center for Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology



More information about the Newlib mailing list