diff options
author | tjr <tjr@FreeBSD.org> | 2003-11-01 08:18:18 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-11-01 08:18:18 +0000 |
commit | f34fc0c744e6519f5c5fb73a10773a7fdf359d35 (patch) | |
tree | b88f979092cebd54b0e6dba041794add6b241b0d /lib/libc/stdio | |
parent | 34fc0661fd7ffdd72ebd690082b4490b2a198754 (diff) | |
download | FreeBSD-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')
-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 |