aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utf32.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utf32.h')
-rw-r--r--lib/utf32.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/utf32.h b/lib/utf32.h
index 4be0db7..bc579ae 100644
--- a/lib/utf32.h
+++ b/lib/utf32.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1999-2001 Free Software Foundation, Inc.
+ * Copyright (C) 1999-2001, 2008 Free Software Foundation, Inc.
* This file is part of the GNU LIBICONV Library.
*
* The GNU LIBICONV Library is free software; you can redistribute it
@@ -49,8 +49,10 @@ utf32_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
*pwc = wc;
conv->istate = state;
return count;
- } else
- return RET_ILSEQ;
+ } else {
+ conv->istate = state;
+ return RET_SHIFT_ILSEQ(count);
+ }
}
s += 4; n -= 4;
}