diff options
Diffstat (limited to 'newlib/libc/stdlib/wcstombs_r.c')
-rw-r--r-- | newlib/libc/stdlib/wcstombs_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdlib/wcstombs_r.c b/newlib/libc/stdlib/wcstombs_r.c index 3bac8a337..0680cd783 100644 --- a/newlib/libc/stdlib/wcstombs_r.c +++ b/newlib/libc/stdlib/wcstombs_r.c @@ -20,7 +20,7 @@ _DEFUN (_wcstombs_r, (reent, s, pwcs, n, state), size_t num_bytes = 0; while (*pwcs != 0) { - bytes = __wctomb (r, buff, *pwcs++, __locale_charset (), state); + bytes = __WCTOMB (r, buff, *pwcs++, state); if (bytes == -1) return -1; num_bytes += bytes; @@ -31,7 +31,7 @@ _DEFUN (_wcstombs_r, (reent, s, pwcs, n, state), { while (n > 0) { - bytes = __wctomb (r, buff, *pwcs, __locale_charset (), state); + bytes = __WCTOMB (r, buff, *pwcs, state); if (bytes == -1) return -1; num_to_copy = (n > bytes ? bytes : (int)n); |