aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/expand.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-09-05 21:04:43 -0500
committerRob Landley <rob@landley.net>2017-09-05 21:04:43 -0500
commitb9613842c3ac1a874b56dff4d1f8ce80c2dbab9d (patch)
tree8aca598bae078a1fa8c3fbe66884a640c05bd6e7 /toys/posix/expand.c
parentb3e70932b6534e603b03d28c45133b8f991f48fe (diff)
downloadtoybox-b9613842c3ac1a874b56dff4d1f8ce80c2dbab9d.tar.gz
Replace remaining mb*towc() calls with utf8towc().
Diffstat (limited to 'toys/posix/expand.c')
-rw-r--r--toys/posix/expand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/expand.c b/toys/posix/expand.c
index a25848ad..d4914ab5 100644
--- a/toys/posix/expand.c
+++ b/toys/posix/expand.c
@@ -49,7 +49,7 @@ static void do_expand(int fd, char *name)
if (CFG_TOYBOX_I18N) {
wchar_t blah;
- width = mbrtowc(&blah, toybuf+i, len-i, 0);
+ width = utf8towc(&blah, toybuf+i, len-i);
if (width > 1) {
if (width != fwrite(toybuf+i, width, 1, stdout))
perror_exit("stdout");