Hi,
At Thu, 21 Jun 2001 12:28:29 +0100 (BST),
Markus Kuhn <[EMAIL PROTECTED]> wrote:
> I guess, calling abort() can be even more desireable here, because the
> resulting core dump will allow developpers to locate the problem most
> quickly.
I guess this is just a joke or a plot to weaken stateful multibyte
support (and to strengthen relative usefulness of UTF-8).
Silence is golden. abort() is too loud. Embedded systems might
not have abort().
> It may detect the problem and return EINVAL.
The problem is, mbrtowc() returns size_t value. Thus, any positive
value cannot be used for error.
If this is a discussion to determine new standard, I would insist
it should return some minus value, for example, -3. Yes, errno
should be set to EINVAL.
However, if this is a developers' question who want to use mbrtowc(),
I think this is not a practical question.
---
Tomohiro KUBOTA <[EMAIL PROTECTED]>
http://www.debian.or.jp/~kubota/
"Introduction to I18N" http://www.debian.org/doc/manuals/intro-i18n/
-
Linux-UTF8: i18n of Linux on all levels
Archive: http://mail.nl.linux.org/linux-utf8/