From f34fc0c744e6519f5c5fb73a10773a7fdf359d35 Mon Sep 17 00:00:00 2001 From: tjr Date: Sat, 1 Nov 2003 08:18:18 +0000 Subject: Fix a typo that caused the optimized single-byte locale path not to be taken. --- lib/libc/stdio/fputwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libc') 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 -- cgit v1.1