NetBSD/usr.bin/vis
christos 96689e7ed9 More fixes from J.R. Oldroyd:
- I have added a call to memset() to clear the mbibuff on
  each loop.  Since we're dealing with possibly broken
  multibyte sequences, clearing it will avoid problems with
  a new input sequence possibly being confused by extra
  bytes still there from the last iteration.  wctomb(),
  which is used to fill that buffer, does not append a NUL.

- I have added a (char) cast when copying single bytes into
  the input buffer after a multibyte conversion error.

- In the call to strvisx() the count must be 1, not mbilen
  which can be 2 or 3 etc for a multibyte character.  This
  value is a count of characters - not bytes - to process.
  It even says characters in the man page.  In vis(3) I
  am interpreting this value to mean multibyte characters.
2013-02-15 00:29:44 +00:00
..
extern.h Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
foldit.c Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
Makefile
vis.1 do the encoding character by character instead of failing on encoding mismatch 2013-02-14 14:00:00 +00:00
vis.c More fixes from J.R. Oldroyd: 2013-02-15 00:29:44 +00:00