aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs/btowc.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcsmbs/btowc.c')
-rw-r--r--wcsmbs/btowc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wcsmbs/btowc.c b/wcsmbs/btowc.c
index 268b1f2..b627324 100644
--- a/wcsmbs/btowc.c
+++ b/wcsmbs/btowc.c
@@ -61,7 +61,8 @@ btowc (c)
&data, inbuf, &inbytes,
&converted, 0);
/* The conversion failed. */
- if (status != GCONV_OK && status != GCONV_FULL_OUTPUT)
+ if (status != GCONV_OK && status != GCONV_FULL_OUTPUT
+ && status != GCONV_EMPTY_INPUT)
return WEOF;
return *(wchar_t *)buf;