aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/wctob.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/wctob.c')
-rw-r--r--newlib/libc/stdlib/wctob.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/wctob.c b/newlib/libc/stdlib/wctob.c
index eebaec8..61365a1 100644
--- a/newlib/libc/stdlib/wctob.c
+++ b/newlib/libc/stdlib/wctob.c
@@ -21,6 +21,5 @@ wctob (wint_t wc)
reent = _REENT;
_REENT_CHECK_MISC(reent);
- return __wctomb (reent, (char *) pmb, wc, __locale_charset (), &mbs) == 1
- ? (int) pmb[0] : EOF;
+ return __WCTOMB (reent, (char *) pmb, wc, &mbs) == 1 ? (int) pmb[0] : EOF;
}