2000-01-18 Ulrich Drepper <drepper@cygnus.com>
- * locale/programs/charmap.c: NUL-terminte names of generated
+ * wcsmbs/mbrtowc.c: Don't set errno if byte sequence is only
+ incomplete but correct.
+
+ * locale/programs/charmap.c: NUL-terminate names of generated
entries for ellipsis.
2000-01-18 Andreas Jaeger <aj@suse.de>
-/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1996.
else
result = inbuf - (const unsigned char *) s;
}
+ else if (status == __GCONV_INCOMPLETE_INPUT)
+ result = (size_t) -2;
else
{
- result = status == __GCONV_INCOMPLETE_INPUT ? (size_t) -2 : (size_t) -1;
+ result = (size_t) -1;
__set_errno (EILSEQ);
}