Commit Graph

25 Commits

Author SHA1 Message Date
christos 2dad2d2d11 Add -N (VIS_NOLOCALE), sort. 2015-05-24 19:42:39 +00:00
wiz 4bbe72809e Sort options in SYNOPSIS/usage. 2014-09-26 02:20:39 +00:00
christos e36fdb7ec1 add VIS_META/VIS_SHELL support to encode all shell metacharacters.
XXX: /etc/rc.d/wizd fix $
2014-09-26 01:21:07 +00:00
christos b2db3f8741 use MB_LEN_MAX directly instead of assuming how large it is. 2013-02-20 17:04:45 +00:00
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
christos 0439e62143 do the encoding character by character instead of failing on encoding mismatch 2013-02-14 14:00:00 +00:00
christos 652899b7c1 don't allow NULL for extra 2013-02-13 22:28:41 +00:00
christos ff77c2a8d2 Multi-byte docs and fixes for > 2 mblen charsets from J.R. Oldroyd 2013-02-13 22:24:48 +00:00
christos c10d89b681 handle EILSEQ. 2013-02-13 13:58:44 +00:00
christos 6db0248c67 handle wide chars 2013-02-13 04:52:31 +00:00
wiz b58ce07c49 Fix typo in usage. 2009-02-11 06:42:31 +00:00
christos cc146168bb forgot to commit this. 2009-02-11 03:04:52 +00:00
christos bb0dd61478 Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
wiz ea9a32c94e Sync usage with man page; use getprogname(). From Kouichirou Hiratsuka
in PR 26387.
2004-07-23 13:44:17 +00:00
lukem a5bde8e7c5 Add -h to enable VIS_HTTPSTYLE.
Reorder getopt & usage strings to be alphabetical to match man page.
2004-04-22 06:35:02 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem 30c6688fbd Implement '-e extra', as per svis(3)'s "extra" argument.
Document which vis(3) flag particular options enable (for easier cross
referencing between vis(1) and vis(3))
2002-12-23 01:45:54 +00:00
itohy be63aecf8f Close opened files.
Make the exit status nonzero on errors.
2000-07-05 00:35:28 +00:00
lukem 3ad51f34e0 WARNSify, deprecate register, getopt returns -1, fix .Nm usage 1997-10-20 03:06:47 +00:00
jtc 4915ed9981 Cleanup by jimj.
Converted to use err() and warn() by myself.
1994-12-20 16:13:02 +00:00
jtc 9afe744ec4 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id conventions.
1994-11-17 07:55:49 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00