diff options
Diffstat (limited to 'lib/libc/stdio/fputwc.c')
-rw-r--r-- | lib/libc/stdio/fputwc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fputwc.c b/lib/libc/stdio/fputwc.c index 1f42ce9..ed1f11b 100644 --- a/lib/libc/stdio/fputwc.c +++ b/lib/libc/stdio/fputwc.c @@ -47,7 +47,7 @@ __fputwc(wchar_t wc, FILE *fp) mbstate_t mbs; size_t i, len; - if (MB_LEN_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) { + if (MB_CUR_MAX == 1 && wc > 0 && wc <= UCHAR_MAX) { /* * Assume single-byte locale with no special encoding. * A more careful test would be to check |