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/wc.c | |
parent | b3e70932b6534e603b03d28c45133b8f991f48fe (diff) | |
download | toybox-b9613842c3ac1a874b56dff4d1f8ce80c2dbab9d.tar.gz |
Replace remaining mb*towc() calls with utf8towc().
Diffstat (limited to 'toys/posix/wc.c')
-rw-r--r-- | toys/posix/wc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/toys/posix/wc.c b/toys/posix/wc.c index 96ff9788..69c5f382 100644 --- a/toys/posix/wc.c +++ b/toys/posix/wc.c @@ -79,7 +79,6 @@ static void do_wc(int fd, char *name) wchar_t wchar; // next wide size, don't count invalid, fetch more data if necessary - clen = mbrtowc(&wchar, toybuf+pos, len-pos, 0); clen = utf8towc(&wchar, toybuf+pos, len-pos); if (clen == -1) continue; if (clen == -2 && !done) break; |