diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-05-07 22:00:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-05-07 22:00:43 +0000 |
commit | 1336419e465c180c938652fadc2aa0b487a6e887 (patch) | |
tree | d0974b45f47d4ee583bb7cfc5bb6a6f2926a23ce /iconv/gconv_simple.c | |
parent | c63b67bd9b89dc6f868f9affde85d5c5c262b9f9 (diff) | |
download | glibc-1336419e465c180c938652fadc2aa0b487a6e887.zip glibc-1336419e465c180c938652fadc2aa0b487a6e887.tar.gz glibc-1336419e465c180c938652fadc2aa0b487a6e887.tar.bz2 |
Update.
* iconv/gconv_simple.c (internal_ucs4_loop): Prefer reporting
empty input buffer over full output buffer.
Diffstat (limited to 'iconv/gconv_simple.c')
-rw-r--r-- | iconv/gconv_simple.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iconv/gconv_simple.c b/iconv/gconv_simple.c index 1844f2b..caee6f3 100644 --- a/iconv/gconv_simple.c +++ b/iconv/gconv_simple.c @@ -89,10 +89,10 @@ internal_ucs4_loop (const unsigned char **inptrp, const unsigned char *inend, #endif /* Determine the status. */ - if (*outptrp == outend) - result = __GCONV_FULL_OUTPUT; - else if (*inptrp == inend) + if (*inptrp == inend) result = __GCONV_EMPTY_INPUT; + else if (*outptrp == outend) + result = __GCONV_FULL_OUTPUT; else result = __GCONV_INCOMPLETE_INPUT; |