summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fputwc.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-11-01 08:18:18 +0000
committertjr <tjr@FreeBSD.org>2003-11-01 08:18:18 +0000
commitf34fc0c744e6519f5c5fb73a10773a7fdf359d35 (patch)
treeb88f979092cebd54b0e6dba041794add6b241b0d /lib/libc/stdio/fputwc.c
parent34fc0661fd7ffdd72ebd690082b4490b2a198754 (diff)
downloadFreeBSD-src-f34fc0c744e6519f5c5fb73a10773a7fdf359d35.zip
FreeBSD-src-f34fc0c744e6519f5c5fb73a10773a7fdf359d35.tar.gz
Fix a typo that caused the optimized single-byte locale path not to be taken.
Diffstat (limited to 'lib/libc/stdio/fputwc.c')
-rw-r--r--lib/libc/stdio/fputwc.c2
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
OpenPOWER on IntegriCloud