diff options
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"); |