2010-01-09 Bruno Haible <bruno@clisp.org>
+ unistr/u16-to-u32: Reject invalid input.
+ * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
+ u16_mbtouc.
+ * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
+ Remove unistr/u16-mbtouc.
+
unistr/u16-to-u8: Reject invalid input.
* lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
u16_mbtouc.
int count;
/* Fetch a Unicode character from the input string. */
- count = u16_mbtouc (&uc, s, s_end - s);
+ count = u16_mbtoucr (&uc, s, s_end - s);
if (count < 0)
{
if (!(result == resultbuf || result == NULL))