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, 2 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/wctob.c b/newlib/libc/stdlib/wctob.c
index 37f7f95..927c1a7 100644
--- a/newlib/libc/stdlib/wctob.c
+++ b/newlib/libc/stdlib/wctob.c
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include "local.h"
int
wctob (wint_t c)
@@ -16,7 +17,7 @@ wctob (wint_t c)
_REENT_CHECK_MISC(_REENT);
- retval = _wctomb_r (_REENT, &pwc, c, &mbs);
+ retval = __wctomb (_REENT, &pwc, c, __locale_charset (), &mbs);
if (c == EOF || retval != 1)
return WEOF;