From 04d8be5a378ec2e51b6a040e7bddd966377e4c5a Mon Sep 17 00:00:00 2001 From: tjr Date: Tue, 20 Jul 2004 08:27:27 +0000 Subject: Call __mbrtowc() and __wcrtomb() directly instead of taking detours through mbrtowc() and wcrtomb(). --- lib/libc/stdio/fgetwc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/stdio/fgetwc.c') diff --git a/lib/libc/stdio/fgetwc.c b/lib/libc/stdio/fgetwc.c index d8b10a1..719556a 100644 --- a/lib/libc/stdio/fgetwc.c +++ b/lib/libc/stdio/fgetwc.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" #include "libc_private.h" #include "local.h" +#include "mblocal.h" /* * MT-safe version. @@ -70,7 +71,7 @@ __fgetwc(FILE *fp) return (wc); } do { - nconv = mbrtowc(&wc, fp->_p, fp->_r, &fp->_extra->mbstate); + nconv = __mbrtowc(&wc, fp->_p, fp->_r, &fp->_extra->mbstate); if (nconv == (size_t)-1) break; else if (nconv == (size_t)-2) -- cgit v1.1