This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #17596] mblen return code when n is zero
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: Rajalakshmi Srinivasaraghavan <raji at linux dot vnet dot ibm dot com>, libc-alpha at sourceware dot org
- Date: Fri, 14 Nov 2014 21:59:32 +0100
- Subject: Re: [PATCH] [BZ #17596] mblen return code when n is zero
- Authentication-results: sourceware.org; auth=none
- References: <1415890908-50691-1-git-send-email-raji at linux dot vnet dot ibm dot com> <mvmk32z3y5l dot fsf at hawking dot suse dot de> <5464D746 dot 2030300 at cs dot ucla dot edu> <5465A7FC dot 4080701 at linux dot vnet dot ibm dot com> <54665BE8 dot 9080008 at cs dot ucla dot edu>
Paul Eggert <eggert@cs.ucla.edu> writes:
> mblen should return -1 in this case, right? I don't see where it's
> allowed to return -2. Likewise for mbtowc.
Both handle that already.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."