mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Update.
* iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting empty input buffer over full output buffer.
This commit is contained in:
parent
c63b67bd9b
commit
1336419e46
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* iconv/Makefile (tests): Add tst-iconv1.
|
* iconv/Makefile (tests): Add tst-iconv1.
|
||||||
* iconv/tst-iconv1.c: New file.
|
* iconv/tst-iconv1.c: New file.
|
||||||
|
* iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
|
||||||
|
empty input buffer over full output buffer.
|
||||||
Reported by yaoz@nih.gov.
|
Reported by yaoz@nih.gov.
|
||||||
|
|
||||||
2000-05-06 Bruno Haible <haible@clisp.cons.org>
|
2000-05-06 Bruno Haible <haible@clisp.cons.org>
|
||||||
|
@ -89,10 +89,10 @@ internal_ucs4_loop (const unsigned char **inptrp, const unsigned char *inend,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Determine the status. */
|
/* Determine the status. */
|
||||||
if (*outptrp == outend)
|
if (*inptrp == inend)
|
||||||
result = __GCONV_FULL_OUTPUT;
|
|
||||||
else if (*inptrp == inend)
|
|
||||||
result = __GCONV_EMPTY_INPUT;
|
result = __GCONV_EMPTY_INPUT;
|
||||||
|
else if (*outptrp == outend)
|
||||||
|
result = __GCONV_FULL_OUTPUT;
|
||||||
else
|
else
|
||||||
result = __GCONV_INCOMPLETE_INPUT;
|
result = __GCONV_INCOMPLETE_INPUT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user