]> Git Repo - uclibc-ng.git/commit
i18n: Fix mbrtowc function to handle 0xc0 and 0xc1 sequence.
authorCarmelo Amoroso <[email protected]>
Mon, 29 Sep 2008 08:51:31 +0000 (08:51 -0000)
committerCarmelo Amoroso <[email protected]>
Mon, 29 Sep 2008 08:51:31 +0000 (08:51 -0000)
commitcdc25d86e3dc7139db435ec79ed298445009f5ba
treee7f968473c7fdf6b72f10607e654602e73ac6b75
parent01520fc86662ac9ed3bebbaabac893aa04afbc3e
i18n: Fix mbrtowc function to handle 0xc0 and 0xc1 sequence.

When the first byte of the multibyte sequence start with 0xc0
or 0xc1, the whole sequence is invalid, so the return value must
be -1 (instead of -2).
Fix bug #686.

Signed-off-by: Filippo Arcidiacono <[email protected]>
Acked-by: Carmelo Amoroso <[email protected]>
libc/misc/wchar/wchar.c
This page took 0.025732 seconds and 4 git commands to generate.