diff options
author | Rob Landley <rob@landley.net> | 2017-12-29 16:43:38 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-12-29 16:43:38 -0600 |
commit | 78c3fcd224c83b454e80a2160ec62e8daf3be5ab (patch) | |
tree | fa6e849b67993b6dcc697d2f37c232a66e2ff553 /toys/other/lsusb.c | |
parent | 12a0b40d09546839f67c8c216d0f20a6609716b2 (diff) | |
download | toybox-78c3fcd224c83b454e80a2160ec62e8daf3be5ab.tar.gz |
Cleanup iconv.
Implement -c, fix endless loop when illegal char happens with
!outleft (don't need to check errno, just in == toybuf), refill
buffer each time (less efficient handling of illegal chars but never
have to worry about how long constitutes a valid sequence in unknown
encoding).
Fix input longer than 2k (memmove() has src/dest switched, second time through
loop in starts at offset inleft...) Made it start at beginning every time.
Switch iconv_open() error msg to show to/from and errno (rather than
hardwired english text).
Diffstat (limited to 'toys/other/lsusb.c')
0 files changed, 0 insertions, 0 deletions