summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/wcrtomb.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/wcrtomb.c')
-rw-r--r--newlib/libc/stdlib/wcrtomb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/stdlib/wcrtomb.c b/newlib/libc/stdlib/wcrtomb.c
index 4f3006814..df7741a8c 100644
--- a/newlib/libc/stdlib/wcrtomb.c
+++ b/newlib/libc/stdlib/wcrtomb.c
@@ -25,9 +25,9 @@ _DEFUN (_wcrtomb_r, (ptr, s, wc, ps),
#endif
if (s == NULL)
- retval = __wctomb (ptr, buf, L'\0', __locale_charset (), ps);
+ retval = __WCTOMB (ptr, buf, L'\0', ps);
else
- retval = __wctomb (ptr, s, wc, __locale_charset (), ps);
+ retval = __WCTOMB (ptr, s, wc, ps);
if (retval == -1)
{
@@ -62,9 +62,9 @@ _DEFUN (wcrtomb, (s, wc, ps),
#endif
if (s == NULL)
- retval = __wctomb (reent, buf, L'\0', __locale_charset (), ps);
+ retval = __WCTOMB (reent, buf, L'\0', ps);
else
- retval = __wctomb (reent, s, wc, __locale_charset (), ps);
+ retval = __WCTOMB (reent, s, wc, ps);
if (retval == -1)
{