diff options
author | Rob Landley <rob@landley.net> | 2017-09-05 21:04:43 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-09-05 21:04:43 -0500 |
commit | b9613842c3ac1a874b56dff4d1f8ce80c2dbab9d (patch) | |
tree | 8aca598bae078a1fa8c3fbe66884a640c05bd6e7 /toys/posix/expand.c | |
parent | b3e70932b6534e603b03d28c45133b8f991f48fe (diff) | |
download | toybox-b9613842c3ac1a874b56dff4d1f8ce80c2dbab9d.tar.gz |
Replace remaining mb*towc() calls with utf8towc().
Diffstat (limited to 'toys/posix/expand.c')
-rw-r--r-- | toys/posix/expand.c | 2 |
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"); |