Don't handle incomplete characters as errors.
authordrepper <drepper>
Thu, 27 Apr 2000 06:44:19 +0000 (06:44 +0000)
committerdrepper <drepper>
Thu, 27 Apr 2000 06:44:19 +0000 (06:44 +0000)
wcsmbs/mbsrtowcs.c

index afa63a7..facec08 100644 (file)
@@ -131,7 +131,7 @@ __mbsrtowcs (dst, src, len, ps)
          || status == __GCONV_FULL_OUTPUT);
 
   if (status != __GCONV_OK && status != __GCONV_FULL_OUTPUT
-      && status != __GCONV_EMPTY_INPUT)
+      && status != __GCONV_EMPTY_INPUT && status != __GCONV_INCOMPLETE_INPUT)
     {
       result = (size_t) -1;
       __set_errno (EILSEQ);