aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/iconv.c
AgeCommit message (Collapse)Author
2017-12-29Promote iconv.Rob Landley
2017-12-29Cleanup iconv.Rob Landley
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).
2017-08-23Fix iconv build and add trivial test.Elliott Hughes
2014-05-31iconv: some fixesFelix Janda
- fix problem with sequences at buffer boundaries - add (ignored) -c and -s options - don't try to continue with a file when read() fails
2014-05-24Pending commands should default nRob Landley
2014-04-23As long as uClibc's still around and requires you to jump through hoops to ↵Rob Landley
get iconv(), probe and build defconfig without it if it's not there.
2014-04-13iconv cleanup.Rob Landley
2014-04-13iconv is actually something I'm missing on my current musl based system.Felix Janda
Attached is a simple version using the libc's iconv.